About Enhancer

issue

com.objectdb.o.InternalException: null

After an error in a @PrePersist method in an Entity class, the database stopped working. Fortunately this was in development, but still worrying! The Entity class ... class was reloaded by JRebel and runtime enhanced by the Enhancer (exception was thrown by ObjectDB since the class wasn't enhanced ...

 
forum_thread

Fetching Collections Puzzle

I am working on a project where I need to travel through a massive graph of objects. One of the main entity is the Node which is shown below. class Node { Node parent List<Node> children Node rightSibling Node leftSibling int rank } I have the following issues/doubts #1 2011-04-23 23:08 I am working on a project where I need to travel through a massive graph of objects. One of the main entity is th ...

 
forum_thread

Missing Data on Retrieval (0, null values)

I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains all necessary Data. Most of the others  contains all  Object-Rows', but most Values of the Columns are missing. With a  em.clear() inside the Loop, all tables are exported correctly but the Enity-Keys do not match. I can't get the point - what am i doing wrong?   emf = Persistence.createEntityManagerFactory(dbFile); em = emf.createEntityManager(); #1 2016-04-13 07:07 I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains ...

 
manual

Database Management Settings

Explains settings and performance tuning of the ObjectDB Java object database for JPA/JDO.... machines. Classes that are enhanced by the ObjectDB Enhancer (when using the OEM license) are signed and excluded from evaluation ...

 
issue

Removing of an entity removes also another entity type

Hello, we have following case: ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. Bug Version: Priority: Normal Status: Active Replies: 6 Type:  Bug ...

 
issue

Issue with cascade delete & add/remove

Hi, Please see the attached sample project (important: classes need to be enhanced as done in the pom.xml file). Bug Version: Priority: Normal Status: Closed Replies: 2 Type:  Bug ...

 
release

2.0.1

Release date: 2010-10-05 Download (3.39 MB) Binary:  objectdb-2.0.1.zip ObjectDB 2 is already in use in production in several applications and is ...

 
forum_thread

Multi-thread access to single EM's entities

If my entity classes have synchronized getters and setters, is it reliable for multiple threads to access a single EM's managed entities, as long as only the thread that created the EM interacts directly with it?  I've tested this and it seems to work... but I know better than to depend on the observable behavior of multithreaded code. When I run this example and examine the database, the entity contains the value set by the second thread, as expected.   #1 2012-04-09 02:22 If my entity classes have synchronized getters and setters, is it reliable for multiple threads to access a singl ...

 
forum_thread

Unexpected NoSuchFieldError exception

Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2) java.lang.NoSuchFieldError: __odbTracker 3) Attempt to start a transaction while another transaction is running. In each case, I've found it difficult to figure out where to find the right documentation. Below is an example that has #1 and #2 together. #1 2017-02-24 02:45 Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2 ...

 
forum_thread

How to resolve 404 errors with Eclipse/Maven Spring MVC

I have created a project as guided by www.objectdb.com/tutorial/jpa/eclipse/spring/run. When I abandon eclipse and use the maven command line to deploy this Spring MVC web app to jetty and point my browser to localhost:8080/Guestbook/ it works as your tutorial says! ... eclipse was giving me, I commented out the com.objectdb.Enhancer. Is this optional when deploying with eclipse instead of maven? I ... Enhancement  (using com.objectdb.Enhancer or other method) is optional, but improves performance. You ...