170 likes | 384 Views
Java Annotations. Were introduced in Java SE 5 (Sep, 2004) Annotations are used to tell the compiler to take additional actions The @ sign is used to indicate the presence of an annotated class, field or method (@ IgnoreWarnings , @Path, etc..). Java Persistence Architecture (JPA).
E N D
Java Annotations • Were introduced in Java SE 5 (Sep, 2004) • Annotations are used to tell the compiler to take additional actions • The @ sign is used to indicate the presence of an annotated class, field or method (@IgnoreWarnings, @Path, etc..)
Java Persistence Architecture (JPA) • JPA is a Java API specification that allows developers to describe low level database designs and behaviors using annotations in the Java code. • Object Relational Mapping (ORM) is the concrete vendor specific implementation of JPA (i.e. – Hibernate, TopLink, etc.)
Java API for RESTful Web Services(JAX-RS) • JAX-RS is the part of the Java EE standard that facilitates RESTful web services. • RESTful behavior can be realized purely through the addition of JAX-RS Annotations
Java Architecture for XML Binding(JAXB) • JAXB facilitates the use of annotations to describe the XML or JSON structure of an object architecture
JPAAnnotations • @Entity • @Table • @Column • @OneToMany • @ManyToOne • @JoinColumn • @Embeddable • @Embedded • @Id • @NamedQueries • @NamedQuery • @SequenceGenerator • @GeneratedValue • @Enumerated • EnumType • @PersistenceContext • TypedQuery
JAX-RS Annotations • @ApplicationPath • @Path • @PathParam • @QueryParam • @Produces • @Consumes • @GET • @POST • @PUT • @DELETE
JAXB Annotations • @XmlRootElement • @XmlElement • @XmlAccessorType • XmlAccessType • @XmlElementWrapper
JAXB Annotations • @XmlRootElement • @XmlElement • @XmlAccessorType • XmlAccessType • @XmlElementWrapper
The project • https://git.psu.edu/ais-swe/web-conference
Running the VM • Navigate to the directory you want the web-conference project installed • git clone https://git.psu.edu/ais-swe/web-conference.git • cd web-conference/ • gitsubmoduleinit • gitsubmodule update • cd web-conference-vagrant/ • vagrant up