About main

161-170 of 200Refresh
Forum
1

Does ObjectDB support lazy loading?

.util.*; import javax.persistence.*; public final class LazyTest { public static void main ... change the main method as follow, and execute java ... LazyTest persist java ... LazyTest find The find prints out [B(0), B(0)]. Why it fails after the DB is re-opened? public static void main(String
Forum
1

Empty temporary dat files in the temp folder

of memory. Some information to our scenario: We use one main database file to which we continuously ... the observed use case the database’s are very small (main DB ~ 3MB and three additional DB’s ... ; import javax.persistence.Persistence; public class pagesTempFiles { public static void main
Forum
1

Enhancement API - NullPointerException

) at my.package.Main.main(Main.java:34) I checked the logs, but there is no more information
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