Home » Search

About example

141-150 of 200Refresh
JPA Doc
3

javax.persistence.Column

, the default values apply. Example 1: @Column(name="DESC", nullable=false, length=512) public String getDescription() { return description; } Example 2: @Column(name="DESC ... getDescription() { return description; } Example 3: @Column(name="ORDER_COST", updatable=false
JPA Doc
3

javax.persistence.Embeddable

class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal(DATE) java.util.Date startDate; @Temporal(DATE) java.util.Date endDate; ... } Example 2 ... ; ... } Example 3: @Embeddable public class Address { protected String street
JPA Doc
3

javax.persistence.ManyToMany

of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany ... ; } Example 2: // In Customer class: @ManyToMany(targetEntity=com.acme.PhoneNumber ... customers; } Example 3: // In Customer class: @ManyToMany @JoinTable(name="CUST_PHONE
JPA Doc
3

javax.persistence.MapKeyJoinColumn

annotation is specified, a single join column is assumed and the default values apply. Example 1 ... ")) @MapKeyJoinColumn(name="DIVISION") Map organization; } Example 2: @Entity ... ; ... } Example 3: @Entity public class Student { @Id int studentId
JPA Doc
3

javax.persistence.OneToMany

and the orphanRemoval element apply to the map value. Example 1: One-to-Many association using generics ... ", nullable=false) public Customer getCustomer() { return customer; } Example 2: One-to-Many ... ) public Customer getCustomer() { return customer; } Example 3: Unidirectional One-to-Many association
JPA Doc
3

javax.persistence.OneToOne

embedded field or property. Example 1: One-to-one association that maps a foreign key column ... ") public Customer getCustomer() { return customer; } Example 2: One-to-one association ... { @Id Integer id; ... } Example 3: One-to-one association from an embeddable class
JPA Doc
3

javax.persistence.OrderBy

annotation is not used when an order column is specified. Example 1: @Entity public class ... getStudents() {...}; ... } Example 2: @Entity public class Student ... public List getCourses() {...}; ... } Example 3: @Entity
Forum
3

Extra uninitialised entities spawned on merge()

relationship Element owner - List ownedElements, and Example is a subclass entity ...         Example e = new Example(root, "example");         root.addOwnedElement(e ... ) {             return ownedElements.add(owned);         }     }     @Entity     static public class Example
JDO Doc
2

javax.jdo.InstanceCallbacks

over callbacks, for example to allow a class to implement the load callback without implementing any ... the runtime infrastructure of the application. For example, a persistent instance might notify
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