ObjectDB ObjectDB

Internal Website Search

141-150 of 200 resultsRefresh

Entity factory - best practices

at the same time? Flying Banana Jiacong Xu Creating multiple EntityManagerFactory instances is thread safe but inefficient. It is more efficient to create one EntityManagerFactory per database

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: final EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb ... ); final EntityManagerFactory emf = Persistence.createEntityManagerFactory

Enhancement Check

.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... [] args) {         EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:test

Need help to make this test work and define proper annotations for entities Lists

; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import ... {                 EntityManagerFactory emf;         EntityManager em;                 public void

remove & persist in same transaction => Attempt to reuse an existing primary key value

javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType; import javax ... { public static void main(String[] args) { EntityManagerFactory emf; emf = Persistence

Failed to read DB file while online backup is running

(); } } and here is the interesting part of JDODatabase: private EntityManagerFactory emf; private EntityManagerFactory getEntityManagerFactory() {   if(emf == null) {    synchronized (this) {     if(emf

Deadlock, if two threads try to close an entity manager

is closing the EntityManagerFactory that owns that EntityManager. Both threads require locks on both the EntityManager and the EntityManagerFactory but in a different order, so that can cause a deadlock

WeakRef Purge ObjectDb threads not stopping with Tomcat (in application container)

with a an EntityManagerFactory scope thread. The new thread exists when the EntityManagerFactory is closed

Navigation through lazy loading from Detached Objects

a semi detached state (in which they are still associated with the EntityManagerFactory and enable lazy ... ");         EntityManagerFactory emf =             Persistence.createEntityManagerFactory

huge heap usage

one EntityManagerFactory with 105,689 EntityManager instances. This could be caused by creating EntityManager ... one EntityManagerFactory (EMF): support Support thanks, this helps pretty much hgzwicker Hans-Georg Zwicker

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