Home » Search

About example

191-200 of 200Refresh
JPA Doc
2

javax.persistence.FetchType

. The implementation is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example
JPA Doc
2

javax.persistence.FieldResult

javax.persistence Annotation FieldResult Target: Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class. Example: Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity
JPA Doc
2

javax.persistence.Id

, the primary key column name is assumed to be the name of the primary key property or field. Example
JPA Doc
2

javax.persistence.IdClass

and their types must be the same. Example: @IdClass(com.acme.EmployeePK.class) @Entity public
JPA Doc
2

javax.persistence.Inheritance

is specified for an entity class hierarchy, the SINGLE_TABLE mapping strategy is used. Example: @Entity
JPA Doc
2

javax.persistence.JoinColumns

must be specified in each such JoinColumn annotation. Example: @ManyToOne @JoinColumns
JPA Doc
2

javax.persistence.JoinTable

together (owning side first) using an underscore. Example: @JoinTable( name="CUST_PHONE
JPA Doc
2

javax.persistence.MapKeyColumn

relationship field or property; "_"; "KEY". Example: @Entity public class Item { @Id int id
JPA Doc
2

javax.persistence.MapKeyEnumerated

. Example: public enum ProjectStatus {COMPLETE, DELAYED, CANCELLED, IN_PROGRESS} public enum
JPA Doc
2

javax.persistence.MapKeyTemporal

with the ElementCollection, OneToMany, or ManyToMany annotation. Example: @OneToMany @MapKeyTemporal(DATE