ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh
7

Internal exception when updating date filed (TemporalType.DATE)

.OdbDateBugTestCase.main(OdbDateBugTestCase.java:27) Caused by: com.objectdb.o.InternalException at com.objectdb ... .OdbDateBugTestCase.main(OdbDateBugTestCase.java:27) Caused by: com.objectdb.o.InternalException at com ... .annotations.Index; import javax.persistence.*; public class T1312 {     public static void main(String
7

Broken @ManyToOne reference

a tiny Eclipse project attached. Please run the main() in the testobjectdb.Main class. In this method ... , but the retrieval should be adjusted:     // Child child = em.find(Child.class, Main.CHILD_ID);     Child child = em.createQuery("SELECT  e FROM Child e", Child.class).getSingleResult(); because Main
7

"Attempt to lock a non entity object" error

Stored: Ron After find and first lock: Ron Exception in thread "main" [ObjectDB 2.4.7_15] java ... .EMImpl.lock(EMImpl.java:783) at com.objectdb.jpa.EMImpl.lock(EMImpl.java:753) at Test.main(Test.java:34) at Enhance.main(Enhance.java:7) import javax.persistence.Entity
7

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

.createEntityManager(); } public static void main(String[] args) { Test t = new Test(); t.doit ... =138 i=139 flushing Exception in thread "main" [ObjectDB 2.2.3_06] Unexpected exception (Error 990 ... ) at Test.main(Test.java:19) awhawks Adam W. Hawks Thank you for this bug report. Build 2.2.3_09
7

Schema Update: class hierarchy change

.EntityManagerFactory; import javax.persistence.Persistence; public final class Test { public static void main ... to BaseEntity: [Please note the changes in the Main method] package profileMigration.classhierachychange ... ; public final class Test { public static void main(String[] args) {   System.out.println("start
7

PostUpdate on array changes

more, noticed a couple of things: a) objectdb.conf file was no longer being found in src/main/resources ... file before any tests with: System.setProperty("objectdb.home", "<full path to src/main/resources>") b ... : 1) why does objectdb no longer pick up objectdb.conf in src/main/resources? 2) why am I now
7

@Unique member combination not working

.getTransaction().rollback();             }             em.close();         }     } } Main public static void main(String[] args) {     Person p1 = new Person("John", "Doe");     Person p2 ... (             "objectdb:$objectdb/db/test.tmp;drop");     public static void main(String[] args
7

Start ObjectDB inside java code.

, you should be able to run it also from your own code by calling the main method directly:     com.objectdb.Server.main(...); See also an option to use an embedded-server mode. support Support Thanks! I ... = new String[1] ; test[0] = "start"; com.objectdb.Server.main (test) ; And it work, but as soon as i
7

Remove an entity which attributes were changed - OptimisticLockException

com.btc.ep.base.dal.tests.it and main.You can execute the unit test OptimisticLockTest as a JUnit ... (RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main ... .persistence.*; public class T1855 {     public static void main(String[] args
1

Update query bug

(); ---------------------------------------- Exception in thread "main" [ObjectDB 2.4.3] Unexpected exception (Error ... (PersonService.java:90) at ui.CmdUI.updatePerson(CmdUI.java:262) at ui.CmdUI.start(CmdUI.java:79) at main.Main.main(Main.java:22) Martynas Martynas This UPDATE query is invalid because JPQL UPDATE queries

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