About main

131-140 of 200Refresh
Forum
1

Should derived fields of an EmbeddedId be manually maintained by app code?

.runEmbeddedContainTest(MainCompoundKeys.java:92) at uk.co.his.test.MainCompoundKeys.main(MainCompoundKeys ... one main class with a runnable main method and use static inner classes for the persistable types ... separate files apart from the top container entity which has the main method and this make the whole thing
Forum
1

JPA - ExceptionInInitializerError when creating EntityManager

Please see my code of fragment from my project.   public class Main { final private static ... (); } //Empty Constructor public void Main() { } public static void main(String[] args) { new Main(); } My project was was running successfully but All of sudden, it is showing
Forum
1

"Attempt to lock a non entity object" error

:     Test Stored: Ron After find and first lock: Ron Exception in thread "main" [ObjectDB 2.4.7_15 ... .objectdb.jpa.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
Forum
1

@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/db/test.tmp;drop");     public static void main(String[] args) {         Person p1 = new
Forum
1

Broken @ManyToOne reference

the main() in the testobjectdb.Main class. In this method: # in a transaction, two instances are created ... 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.CHILD_ID
Forum
1

Bug: ClassCastException by retrieval

args   */ public static void main(String[] args) {   EntityManagerFactory emf = Persistence ... ] Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Character; at test.TestGeneric.main(TestGeneric.java:43) Hi, I believe the ObjectDB stores
Forum
1

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

.createEntityManager(); } public static void main(String[] args) { Test t = new Test(); t.doit ... thread "main" [ObjectDB 2.2.3_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64 ... .objectdb.o.OBM.flush(OBM.java:732) at Test.doit(Test.java:38) at Test.main(Test.java:19)   Thank
Forum
1

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 ... .persistence.*; public class T1312 {     public static void main(String[] args
Forum
1

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.guestbook.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.guestbook.war".main: Failed to load module: deployment.guestbook.war:main 09:14:52,546 ERROR [org ... services" => {"jboss.module.service.\"deployment.guestbook.war\".main" => "org.jboss.msc.service
Forum
1

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

has indeed been performed.   I have this at the entry to my application: public static void main(String[] args ... .server/com.unilogical.moxydox.server.Main.startOffloadJavaFx(Main.java:522) at com.unilogical.moxydox.server/com.unilogical.moxydox.server.Main.lambda$start$3(Main.java:337) at com.unilogical