About main

181-190 of 200Refresh
Forum
1

Enhancement from gradle build file

seems to work: task enhance(type: JavaExec) {   main = 'com.objectdb.Enhancer'   classpath = sourceSets.main.runtimeClasspath   args '-cp', 'src/main/groovy', 'app.model.*', 'app.model_dir
Forum
1

Exception when querying Map property with @embedded & Enhancer enabled

void main(String[] args) {   EntityManagerFactory emf =     Persistence.createEntityManagerFactory ... + "]";   } } }       Exception in thread "main" [ObjectDB 2.6.4_03] javax.persistence ... ) at TestEmbeddableMap.main(TestEmbeddableMap.java:40) Caused by: com.objectdb.o.UserException: Failed to write
Forum
1

How to define database structure and insert some initial objects from scratch

a script? In SQL world we have scripts like "insert into..." - Can we use main objectdb.jar library as ... , however, could be simple. Just build your entity objects and persist them. e.g. public class Main {     public static void main(String[] args) {         // Open a database connection         // (create a new
Forum
1

How to disable use of graphic windows by objectDB

.objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by: java.net ... .main(Server.java:66) Caused by: java.net.UnknownHostException: GhostRider: Name or service not known ... .run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by: java.net
Issue
1

Issue with TYPE expression in Criteria API

.virtual.model.MyCustomer $1 WHERE TYPE($1)=class com.test.model.Customer Exception in thread "main ... :675) at com.test.TestRun.test01(TestRun.java:68) at com.test.TestRun.main(TestRun.java:28) Caused ... .criteria.Root; public class T605 {     public static void main(String[] args
Forum
1

Left join fetch behaviour doesn't retrieve children?

ObjectDbTest {     public static void main(String[] args)  {               EntityManagerFactory emf ... . The test case : public class ObjectDbTest { public static void main(String[] args ... main(String[] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb
Forum
1

Mysterious "Attempt to persist a reference to a non managed instance" error

com.objectdb.Enhancer; public class ODBTest { public static void main(String[] args ... still getting an exception: Exception in thread "main" [ObjectDB 2.2.6_03] javax.persistence ... .main(ODBTest.java:38) Caused by: javax.persistence.PersistenceException: com.objectdb.o
Issue
1

NullPointer when accessing persistent field

(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main ... class T544 {         public static void main(String[] args) {         EntityManagerFactory emf ... .RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
Issue
1

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

). Darren PS: We do not want to have to fork our main web application to go through it and tediously ... it works, however it does mean some significant changes in my main project (although these won't hurt ... until the evaluation runs and is proven on our main web app, without forking them.) EAGER is definitely out. As
Forum
1

PersistenceException: Failed to locate field

"main" java.lang.ExceptionInInitializerError Caused by: com.objectdb.o._PersistenceException: Failed ... should still work. ok, so problem resolves if I add programmatic enhancement: static void main ( args ... should out the enhancement code in there first or have a proxy class which calls the main class, if I recall