1 / 10

Java Annotations

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).

Download Presentation

Java Annotations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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..)

  2. 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.)

  3. 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

  4. Java Architecture for XML Binding(JAXB) • JAXB facilitates the use of annotations to describe the XML or JSON structure of an object architecture

  5. JPAAnnotations • @Entity • @Table • @Column • @OneToMany • @ManyToOne • @JoinColumn • @Embeddable • @Embedded • @Id • @NamedQueries • @NamedQuery • @SequenceGenerator • @GeneratedValue • @Enumerated • EnumType • @PersistenceContext • TypedQuery

  6. JAX-RS Annotations • @ApplicationPath • @Path • @PathParam • @QueryParam • @Produces • @Consumes • @GET • @POST • @PUT • @DELETE

  7. JAXB Annotations • @XmlRootElement • @XmlElement • @XmlAccessorType • XmlAccessType • @XmlElementWrapper

  8. JAXB Annotations • @XmlRootElement • @XmlElement • @XmlAccessorType • XmlAccessType • @XmlElementWrapper

  9. The project • https://git.psu.edu/ais-swe/web-conference

  10. 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

More Related