ObjectDB ObjectDB

Internal Website Search

141-150 of 200 resultsRefresh
14

Extra uninitialised entities spawned on merge()

relationship Element owner - List<Element> 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
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, precision
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
3

javax.persistence.ManyToMany

of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany ... customers; } Example 2: // In Customer class: @ManyToMany(targetEntity=com.acme ... () { return customers; } Example 3: // In Customer class: @ManyToMany @JoinTable(name="CUST
2

javax.persistence.TableGenerator

unit (across all generator types). Example 1: @Entity public class Employee ... ="empGen") int id; ... } Example 2: @Entity public class Address
2

javax.persistence.EmbeddedId

supported. Example 1: @EmbeddedId protected EmployeePK empPK; Example 2: @Embeddable
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
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="EMP
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
0

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

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