Fast Object Database for Java - with JPA/JDO support

Internal Website Search

111-120 of 200 resultsRefresh
2

Persist error @ManyToMany how to define correct entities relationships

); em.merge(prod); em.getTransaction().commit ... ); em.getTransaction().commit(); System.out.println("add product id ... (); } } } lo Hoel I finally managed to get it working by using merge when commit fails on persist and using
2

makePersistent(pc)

persistent-new instances (return true to isPersistent, isNew, and isDirty). But at commit time
2

CacheStoreMode.USE

Enum Constant javax.persistence.CacheStoreMode USE Insert/update entity data into cache when read from database and when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: JPA 2.0
2

makeNontransactionalAll(pcs)

Method javax.jdo.PersistenceManager void makeNontransactionalAll( Collection pcs ) Make a Collection of instances non-transactional after commit. Parameters: pcs - the Collection of instances to make nontransactional. Since: JDO 1.0 See Also: makeNontransactional(Object pc)
2

CacheStoreMode.REFRESH

Enum Constant javax.persistence.CacheStoreMode REFRESH Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database. Since: JPA 2.0
2

persist(entity)

at flush or commit time.) IllegalArgumentException - if the instance is not an entity
2

javax.persistence.PessimisticLockException

. This exception may be thrown as part of an API call, a flush or at commit time. The current
2

makeNontransactional(pc)

Method javax.jdo.PersistenceManager void makeNontransactional( Object pc ) Make an instance non-transactional after commit. Normally, at transaction completion, instances are evicted from the cache. This method allows an application to identify an instance as not being evicted from the cache
2

preClear(event)

during an application call to evict, and in afterCompletion for commit with RetainValues false and rollback
2

getRetainValues()

Method javax.jdo.Transaction boolean getRetainValues() If true, at commit time instances retain their field values. Returns: the value of the retainValues property Since: JDO 1.0

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