About main

tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse. In this step we will add a main class to the project with code that will store Point objects in the ... The package name should be tutorial . Enter Main as the class name - use exactly that ... import java. util . *;   public class Main { public static void main ( String [ ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in NetBeans. In this step we will add code to the Main class (that was generated with the project) in order to store Point ... Use copy and paste to replace the content of the Main class with the following content: package tutorial ; ... import java. util . *;   public class Main { public static void main ( String [ ...

 
issue

Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker

Hi   there is something wrong with enhancement process I got that class was succesfully processed, log has size 0, enhancer is from build objectdb-2.2.8_08 and during object creation when some filed is initialised i got an exception   Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker at com.package.Network.__odbSet_Connections(Network.java:1) at com.package.Network.<init>(Network.java:95) at com.package.EnhancementTest.main(EnhancementTest.java:14)   ... an exception   Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker at ... at com.package.EnhancementTest.main(EnhancementTest.java:14)   Network class is ...

 
faq

What are the main benefits of using ObjectDB?

By using ObjectDB you can reduce development time and costs and improve your application performance. Reducing Development Time and Costs ObjectDB makes database programming easier and faster. The ability to store ordinary objects in the ...

 
forum_thread

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 and T2 that cause parallel updates to A/B but it does not throw an OptimisticLockException and roll back. ... Sequential=true Lock=WRITE Thread [ Thread-2,5,main ] READ A1 version=1 value=0 Thread [ Thread-2,5,main ] READ B2 version=1 value=0 Thread [ Thread-2,5,main ] ...

 
forum_thread

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... INFO : ( AppPropertyManager. java :144 thread:main ) : setInitialLoggerSettings ( ) : Reconfiguration of ... 15:38:42.3842: INFO : ( AppMain. java :34 thread:main ) : main ( ) : Java version used:1.8.0_66x32 1/23/2016 ...

 
forum_thread

Inconsistent return types from JDO query

I'm running a JDO query which returns the sum of an int field.  The return type of the Object produced by the Query is inconsistent - sometimes Integer, sometimes Long.  Using setResultClass(Long.class) has no effect. ... reproduces the problem. Main program PersistenceCapable class ...

 
issue

JQL-Update Queries fails with activated L2-Cache

When using JQL-Update Queries it is basically not working without calling entityManager.clear() after a transaction commit. When the clear() method isn't called the entityManager will never return a container the updated Entities. Scenario 1: Disabled L2 Cache, updating elements using UPDATE-Query and fetching Entities afterwards from database. Expected result: Getting changed Entities from database - Actual result: No changes are visble. ... Entity Container for Entities Main entry point of sample application objectdb.conf ...

 
forum_thread

Cannot catch a PersistenceException and continue the transaction

I try to create a factory that creates new objects just in case it doesn't find the relevant one in the DB. but because query.getSingleResult() fires NoResultException in that case it marks the transaction as one that need to be rolled back. I understood that I can overcome it in several ways but those don't work for me. 1. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction when another is active. ... Thanks, Dreckguy The main Factory The object responsible to query the db ...

 
forum_thread

the tutorial netbeans and javaee6 dont work,

hi . i am Mauro . i have tried the tutorial for the objectDB and netbeans and JAvaee6 I have insert the persistencex.ml like tutorial (for the embedded mode) . but when i have insert the name into form for to save the new guest into db , i get the following message from glassfsih:   HTTP Status 404 - -------------------------------------------------------------------------------- type Status report message ... Rebuild the project - Run > Clean And Build Main Project from the main menu. Run the project again -  Run > Run Main ...