ObjectDB ObjectDB

Internal Website Search

11-20 of 93 resultsRefresh
38

General Performance Issues Illustrated with a Specific Method

; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table ... */ @ManyToOne(fetch = FetchType.LAZY) private WebUser createdBy; @Temporal(javax.persistence ... ) private Date createdOn; @ManyToOne(fetch = FetchType.LAZY) private Institution
22

JPA Entity Fields

: OneToOne, ManyToOne - for references of entity types. OneToMany, ManyToMany - for collections and maps ... relationship: @Entity public class Employee { String name; @ManyToOne Department department
22

Retrieving JPA Entity Objects

retrieval by using a lazy fetch type: @Entity class Employee { : @ManyToOne(fetch=FetchType ... specifying FetchType.LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not
11

javax.persistence.JoinColumn

itself is defaulted, a single join column is assumed and the default values apply. Example: @ManyToOne ... getOrders() {return orders;} Since: JPA 1.0 See Also: ManyToOne OneToMany OneToOne JoinTable ... . If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign
6

javax.persistence.OneToMany

getOrders() { return orders; } In Order class: @ManyToOne @JoinColumn(name="CUST_ID ... ; } // In Order class: @ManyToOne @JoinColumn(name="CUST_ID", nullable=false
6

javax.persistence.AssociationOverride

Employee { ... @ManyToOne protected Address address ... contactInfo; ... } @Embeddable public class ContactInfo { @ManyToOne Address
6

JoinColumn.name

ManyToOne mapping using a foreign key mapping strategy, the foreign key column is in the table ... is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne/OneToMany mapping using a join table
6

JoinColumn.table

of the applicable entity. Default: If the join is for a OneToOne or ManyToOne mapping using a foreign ... ManyToOne/OneToMany mapping using a join table, the name of the join table. If the join is for an element
6

javax.persistence.MapKey

getEmpId() { ... } @ManyToOne @JoinColumn(name="dept_id") public Department ... { @Id public Integer getEmpId() { ... } ... @ManyToOne @JoinColumn(name
6

javax.persistence.MapsId

javax.persistence Annotation MapsId Target: Fields (including property get methods) Designates a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key ... ; ... @MapsId("empid") // maps the empid attribute of embedded id @ManyToOne

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support