About enhancement

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 Bug Version: Priority: Normal Status: Active Replies: 5 Type:  Bug ...

 
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 ... if they are annotated as LAZY  explicitly and enhancement is used (which is recommended anyway to improve performance). ...

 
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. The <database> configuration element specifies back end (database engine) settings which are relevant on the server side and in embedded mode. The default configuration file contains the following <database> element: ...

 
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). ... As you indicated, the behavior when using enhancement and using reflection is different. This is the result of different ...

 
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.   ... in the entity classes themselves. Notice that enhancement of your classes will replace every access of a persistent field ... of a method that ObjectDB adds to the classes during enhancement and these methods are not synchronized. But if these methods are ...

 
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. ... all your classes, as the error messages indicates a broken enhancement (e.g. some classes in a class hierarchy are enhanced some are not, ...

 
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! ... 2013-02-08 01:57 Enhancement  (using com.objectdb.Enhancer or other method) is ...