About example

161-170 of 200Refresh
JDO Doc
2

javax.jdo.spi.JDOImplHelper

a call to the field manager for each key field in the ObjectId. For example, an ObjectId class ... in the ObjectId. For example, an ObjectId class that has three key fields (int id, String name
JPA Doc
2

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
2

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
2

javax.persistence.EmbeddedId

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

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
2

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
2

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
2

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
2

javax.persistence.MapKey

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

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