ObjectDB ObjectDB

Internal Website Search

141-150 of 200 resultsRefresh

Remove an entity which attributes were changed - OptimisticLockException

or several plugins seems to be using one or more EntityManagerFactory / EntityManager instances, i ... EntityManager (not just the same EntityManagerFactory) is used by the different plugins ... should be when only one EntityManager is used) or different Java instances? support Support I meant the ObjectDB throws away

Persist error @ManyToMany how to define correct entities relationships

; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence ... { EntityManagerFactory emf; EntityManager em; void test ... .persistence.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory

Missing (null) elements in eager loaded references

it happen when the EntityManager is open or closed? Note that if you are working with detached objects (e.g. after closing the EntityManager) then anything that has not been already loaded ... are returned and the EntityManager is closed? Kevin Kevin Pfaff > So you say that despite of the eager

Memory Leak in EntityManagerFactory ?

.createEntityManagerFactory(db_name) 3. After runnings some automatic tests for ca. 1 h all EntityManagers are closed ... all EntityManagers and of course running garbage collector) 5. the gc root of all those objects is our single ... from an EntityManager in the connection pool of a live EntityManagerFactory, where that EntityManager


javax.persistence Interface EntityTransaction Interface used to control transactions on resource-local entity managers. The EntityManager.getTransaction() method returns the EntityTransaction interface. Since: JPA 1.0 Learn how to use EntityTransaction in Chapter 3 of the ObjectDB/JPA manual. void

Best practise loading big data

this MyStepBlockCollection sbc = entityManager.find(id); for (MyStepBlock sb : sbc.stepBlocks ... above: MyStepBlockCollection sbc = entityManager.find(id); for (MyStepBlock sb : sbc.stepBlocks) { for (MyStep s : sb ... .Embeddable; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax

createEntityManagerFactory(persistenceUnitName, properties)

that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0


EntityManagers configured according to the specified persistence unit Since: JPA 1.0


.persistence.EntityManager methods that take locks ( lock, find, or refresh) or to the Query

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... .createEntityManagerFactory("ReproducePU"); } public EntityManager getEntityManager() { return emf ... ); edit(chart); } public MomentEntity findMomentEntity(Long id) { EntityManager em

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