ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
23

Persist error @ManyToMany how to define correct entities relationships

private long id; @ManyToMany(cascade=CascadeType.PERSIST) private List<Category> categories ... private long id; public Category(int id) { this.id = id ... private long id; @ManyToMany(cascade=CascadeType.PERSIST) private List
20

General Performance Issues Illustrated with a Specific Method

<ClientBasicData> listPatientsByIDsWithBasicData(String ids) { Long st = new Date().getTime ... size = " + cs.size()); Long ed = new Date().getTime(); System.out.println ... ) private Long id; private static final long serialVersionUID = 1L; @Index @OneToOne
18

Join performance in Objectdb

();         System.out.println("Database population completed.");         long ms, result, elapsedTime ... ();         TypedQuery<Long> q1 = em.createQuery(             "SELECT COUNT(a) FROM A a, B b, C c " +             "WHERE a.bId = b.id AND a.cId = c.id", Long.class);         result = q1.getSingleResult
3

sumAsLong(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> sumAsLong( Expression<Integer> x ) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0
3

javax.persistence.GeneratedValue

") @Column(name="CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy=TABLE, generator="CUST_GEN") @Column(name="CUST_ID") Long id
3

toLong(number)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> toLong( Expression<?> number ) Typecast. Returns same expression object. Parameters: number - numeric expression Returns: Expression<Long> Since: JPA 2.0
3

javax.persistence.Version

, Integer, short, Short, long, Long, java.sql.Timestamp. Example: @Version @Column(name
0

setRange(fromInclToExcl)

can be either String representations of long values, or can be parameters identified with a leading ... is done at the data store. Parameters: fromInclToExcl - comma-separated fromIncl and toExcl values Since: JDO 2.0 See Also: setRange(long, long)
0

setRange(fromIncl, toExcl)

Method javax.jdo.Query void setRange( long fromIncl, long toExcl ) Set the range of results to return. The execution of the query is modified to return only a subset of results. If the filter ... exclusive end index, or Long.MAX_VALUE for no limit. Since: JDO 2.0
0

javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager

1.0 long fetchLongField(int fieldNumber) Fetch one field from the field manager. Fetch one field ... fieldNumber, long value) Store one field into the field manager. Store one field into the field

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