About main

181-190 of 200Refresh
Forum
1

Connection is closed Caused by: java.io.EOFException

.java:194) at com.objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66 ... Test {     public static void main(String[] args) {         EntityManagerFactory emf = Persistence ... .*; public final class Test {     public static void main(String[] args
Forum
1

Convert embedded database to server

  The benefit of the embedded-server mode is of course better performance of the main application that accesses the database in embedded mode, which is faster. The main drawback is that the embedded server depends on the main application, so will not be available when the  application closes its connections
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