Loading
Mapping with JPA

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Mapping with JPA (Java Persistence Annotations) ?


Ans)

JPA entities are plain POJOs. Actually, they are Hibernate persistent entities.
Their mappings are defined through JDK 5.0 annotations instead of hbm.xml files.

In following Example "status" does not exist in table

@Entity
@Table(name="tbl_sky")
public class Sky implements Serializable {
    private String name;
    private String model;
 @Transient
    private String status;

    @Id
    public String getName() {
        return name;
    }
 }



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Mapping with JPA


Mapping with JPA

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free