About enhancement
JPA / JDO Class Enhancer
The Enhancer is a post compilation tool that improves performance by modifying the byte code of compiled classes after compilation.... the byte code of compiled classes after compilation. Enhancement is mainly for user-defined persistable classes ( entity classes , ... optional. There is one case, however, where enhancement is required. Non persistable classes that access directly (not ...
Entity Management Settings
Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... element: <entities > <enhancement agent = "true" reflection = "warning" /> ... describes one subelement: The <enhancement> element The <cache> element ...
Step 3: Add a Context Listener Class
Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in an Eclipse Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...
Step 3: Add a Context Listener Class
Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in a NetBeans Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...
Chapter 5 - Database Tools and Utilities
Describes the ObjectDB object database tools - the Explorer, the Server, the Enhancer, the Doctor and the Replayer. This chapter explains how to use the following ObjectDB tools and utilities: Database Explorer Database Server JPA / JDO Class Enhancer Database Replication and Clustering Online Backup Database D ...
enhanced object .. NOT enhanced
Hi I think I have found a bug : - I have enhanced a class but when I tried to persitst it I got an error that this class has not been ehanced (what is important, this class has _odbTracker field added) So, instead of DB write a standard serialization mechanizm is triggered. Finnally we get an OutOfMemory expeption. b ... Using serialization is not the result of no enhancement but of a missing @Entity / @PersistenceCapable annotation ...
ODB 2 JDO enhancement
If I label a class @PersistenceCapable do I still need to explicitly enhance? Do I need a package.jdo file? This question relates to experiences with ODB 1, in which one has to: a) create a package.jdo, and b) run the Enhancer In my experience, using this with Tomcat, and running the enhancer in the contextListener class, there would often be errors relating to 'class not persistent capable'. So, in ODB 2 is there a way to mark a class as @PersistentCapable, and then let ODB take care of enhancement automatically?... as @PersistentCapable , and then let ODB take care of enhancement automatically? Alternatively, is there a best practice for enhancement in a web environment. (and in a dev environment using ...
Compile time enhancement using build.xml of a Netbeans web application
Does anybody have a complete, working example of the adaptations required in the build.xml of a Netbeans web application project to specify ObjectDB compile time enhancement, for both single file and whole project compilation ? The ObjectDB 2.3 manual gives the following tip: ... web application project to specify ObjectDB compile time enhancement, for both single file and whole project compilation ? ... Until now I have been working with run-time enhancement using objectdb.jar as a javaagent, but I am now seem to be getting ...
Maven driven compile time ehnancement
Hi, Just thought I'd share a small bit of Maven config to aid in enhancing persistent classes during compile time. Just add the following to your pom.xml: ... Thank you for this post. Integration of enhancement into Maven is certainly useful. I could use your example to ... - using mvn package jetty:run The enhancement message is shown, but the Guest.class file in the ...
Enhancer problem
During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. #1 2011-09-02 13:42 During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFact ...