About example

141-150 of 200Refresh
JPA Doc
3

javax.persistence.AttributeOverride

. If AttributeOverride is not specified, the column is mapped the same as in the original mapping. Example 1 ... getHourlyWage() { ... } public void setHourlyWage(Float wage) { ... } } Example 2 ... address; ... } Example 3: @Entity public class PropertyRecord { @EmbeddedId
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

Dependency from enhanced classes to the objectDB library

a “small” example based on our OSGi Bundle structure. The example contains 7 eclipse projects. (We use ... this example to get the exception on #1 (or if the example demonstrates a different exception, please describe it in details). Hello, in the example of post #3, we get a different error message than in
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