About main

forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... Ron After find and first lock: Ron Exception in thread "main" [ ObjectDB 2.4.7_15 ] java ... ( EMImpl. java :753 ) at Test.main ( Test. java :34 ) at Enhance.main ( Enhance. java :7 ) import javax. persistence ...

 
forum_thread

Should I be able to persist a JFrame (or gui components in general)?

    I did the following: 1. (using Netbeans 8.02 & last available java 7 sdk) I sort of follow your tutorial(s) while applying the ideas to a sample that came with the IDE called GUIFormExamples (under samples). ... 2. Specifically, I worked with the ContactEditor as main. I made a new class called Contact, and modeled after your Point class ...     // main from JavaApplication1.java.....................................   public static void main ( String [ ] args ) {   ...

 
forum_thread

there is a free version?

when I run my project from eclipse the console ask me, besides username and password, the license key, but I want to use it for free. How can I do? ... Eclipse. According to your description it seems that your main class is the ObjectDB Activator (which is not needed for free users) rather than your main class or your web application. ObjectDB Support ...

 
forum_thread

@Convert is not supported?

Does objectdb jpa implementation support @Convert annotation? (convertion of property before persistance and vice versa)   for example @Convert(converter = MyConverter.class) private Date date;   I've wrote a test on this, and seems that my Converters methods are not executed at all (like annotation doesent exist) #1 2014-08-25 14:06 Does objectdb jpa implementation support @Convert annotation? (convertion of property before persistance and vice ...

 
forum_thread

exceeds evaluation limit Exception

Hi ,every body i have this exception , and i didn't know what is mean or from "Exception in thread "main" [ObjectDB 2.0.5_02] javax.persistence.PersistenceException Too many persistable types (>10) - exceeds evaluation limit (error 1011) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:357) at DBManager.insertPatient(DBManager.java:29) at Main.main(Main.java:374)" does any body face this exception before Thanks in Advance     ... know what is mean or from "Exception in thread "main" [ObjectDB 2.0.5_02] javax.persistence.PersistenceException Too many ... at DBManager.insertPatient(DBManager.java:29) at Main.main(Main.java:374)" does any body face this exception before ...

 
forum_thread

Left join fetch behaviour doesn't retrieve children?

Hello support, I'm a little bit confused about a left join fetch behaviour. In this test case, i try to fetch my 3 children using a left join fetch. But my collection is null after closing the em. It was expected to be fetched before closing the em, no ? In fact, that is the objective of the fetch purpose (i guess ?). ... {   public static void main ( String [ ] args ) {   ... {   public static void main ( String [ ] args ) {   ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to create a JPA entity class in the NetBeans IDE.... despite the warning. The next step is adding a Main class that stores and retrieves instances of the Point entity ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ... JAR directly The Explorer is packaged in the main ObjectDB development jar file (odbfe.jar / odbee.jar / odbse.jar), located ... its persistent fields are represents by child nodes. The main advantage of using the browser window is in navigation among objects. ...

 
forum_thread

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

In response to the forum posting http://www.objectdb.com/database/forum/994 changes were made to the way enhancement treats getters and setters (property accessors), namely there are no longer enhanced additional getters/setters, because the additional methods now use (since about version 2-6-5) this pattern: __odbHidden_[accessor_name] Instead of this pattern with a suffix (preserving the method as a setter or getter), prior to version 2-6-5: ... the new policy, however this has major consequences for my main web app development (broke it), because I was necessarily using reflection ... now going to have to perform a substantial migration in my main web app because of this change (as a side-effect of that fact that the old ...

 
forum_thread

Enhancer failure: Failed to process class file of type

Stack trace below:   ... at com.objectdb.Enhancer.main(Enhancer.java:33) Caused by: com.objectdb.o.UserException: Failed to ... ( type : JavaExec ) { main = 'com.objectdb.Enhancer' classpath = sourceSets. main . runtimeClasspath args '-cp' , 'src/main/groovy' , ...