ObjectDB ObjectDB

Internal Website Search

141-150 of 200 resultsRefresh

Performance problem

objects) First version of code:     EntityManagerFactory emf =         Persistence ... ();     System.out.println((endTime - startTime)); Second version of code:     EntityManagerFactory emf

failure to enforce NOT NULL for java.lang.String

public void regressionTest() { EntityManagerFactory emf = Persistence ... ){         EntityManagerFactory emf =             Persistence.createEntityManagerFactory

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

"Attempt to lock a non entity object" error

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... ) {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(           "objectdb:D:\\eclipse

@MappedSuperclass and @Transient not working as I expected

.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax.persistence ... protected int id; @Version protected long version; @Transient protected EntityManagerFactory emf

IN expression in a Criteria Query

public class T1108 {         public static void main(String[] args) {         EntityManagerFactory ... (String[] args) {         EntityManagerFactory emf =             Persistence

em.flush(); em.clear(); loosing data and not persisting managed objects

.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class Test { private final EntityManagerFactory emf; private final EntityManager em; public Test

find() delay

){         EntityManagerFactory emf = Persistence.createEntityManagerFactory(             "$objectdb/db/test.odb ... final class Test { public static void main(String[] args){   EntityManagerFactory emf

multiple LEFT JOINs do not work as expected

static void main(String[] args) {         EntityManagerFactory emf =             Persistence ... class T616 { public static void main(String[] args) { EntityManagerFactory emf

NullPointerException when using multithreading

commits. The client application has a single instance of the EntityManagerFactory and each thread ... );     factory.close(); After 3 minutes the EntityManagerFactory is closed with all its EntityManager instances

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