Home » Search

About example

151-160 of 200Refresh
JPA Doc
3

javax.persistence.AssociationOverride

must be specified to override the mapping of the join table and/or its join columns. Example 1: Overriding ... public class PartTimeEmployee extends Employee { ... } Example 2: Overriding the mapping
JPA Doc
3

javax.persistence.Basic

property, the default values of the Basic annotation will apply. Example 1: @Basic protected String name; Example 2: @Basic(fetch=LAZY) protected String getName() { return name
JPA Doc
3

javax.persistence.EmbeddedId

supported. Example 1: @EmbeddedId protected EmployeePK empPK; Example 2: @Embeddable
JPA Doc
3

javax.persistence.GeneratedValue

primary keys. Example 1: @Id @GeneratedValue(strategy=SEQUENCE, generator="CUST_SEQ") @Column(name="CUST_ID") public Long getId() { return id; } Example 2: @Id
JPA Doc
3

javax.persistence.JoinColumn

itself is defaulted, a single join column is assumed and the default values apply. Example: @ManyToOne @JoinColumn(name="ADDR_ID") public Address getAddress() { return address; } Example
JPA Doc
3

javax.persistence.Lob

, and except for string and character-based types defaults to Blob. Example 1: @Lob @Basic(fetch=LAZY) @Column(name="REPORT") protected String report; Example 2: @Lob @Basic(fetch=LAZY) @Column(name
JPA Doc
3

javax.persistence.ManyToOne

with the dot notation is the name of the respective embedded field or property. Example 1 ... ) public Customer getCustomer() { return customer; } Example 2: @Entity public class
JPA Doc
3

javax.persistence.MapKey

. Example 1: @Entity public class Department { ... @OneToMany(mappedBy ... getDepartment() { ... } ... } Example 2: @Entity public class Department
JPA Doc
3

javax.persistence.NamedQuery

annotation can be applied to an entity or mapped superclass. The following is an example of the definition ... " ) The following is an example of the use of a named query: @PersistenceContext public
JPA Doc
3

javax.persistence.SecondaryTable

of the primary table. Example 1: Single secondary table with a single primary key column. @Entity ... =@PrimaryKeyJoinColumn(name="CUST_ID")) public class Customer { ... } Example 2: Single secondary table