About enhancement

forum_thread

Error when using Object DB Java Agent

Hello! We are using the Java Agent while developing our application because it's not possible to tell IntelliJ to enhance the classes after compiling them. Without enhancing it's painfully slow. So we are using the agent as a workaround while JetBrains is investigating the issue. Our production code is built with maven and the classes are compile time enhanced. With the agent we have a problem. In a couple of our projects this exceptions gets thrown when we initialize logback: #1 2015-05-15 12:55 Hello! We are using the Java Agent while developing our application because it's not possible to tell ...

 
forum_thread

pesimistic Lock semantic

Hi   I have tested pesimistic lock and the result was for me unexpected. In the first transaction i modified one object and in the second transaction i wanted to the same and  I got an exceptopn that lock could not be granted, quite nice but in that moment I wanted commit the first transaction and I also got lock exception. this the test:   public void testPesimisticLock() {   PersistenceManager pm1 = null;   PersistenceManager pm2 = null; ... you should have a problem if you run this code without enhancement. JDO (unlike JPA) requires enhancement to function properly. With enhancement - the picture will ...

 
forum_thread

NullPointerException while setting a new property value

Hello, we are using ObjectDB version 2.4.4 and we are unable to resolve following NPE on enhanced entity: java.lang.NullPointerException at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1099) at model.PluginMetaData.__odbSet_maxAllowedDownloads(PluginMetaData.java:1) at model.PluginMetaData.setMaxAllowedDownloads(PluginMetaData.java:268) at model.PluginMetaData.setPluginDescriptor(PluginMetaData.java:94) PluginMetaData looks like this (nothing extraordinary, no relationship to other @entities): ... stack trace. The exception may indicate incomplete enhancement (i.e. rebuilding the project and enhancing all the classes may ...

 
manual

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database. Modifying existing entity objects that are stored in the database is based on transparent persistence, which means that changes are detected and handled automatically. This page covers the following topics: Transparent ...

 
forum_thread

Verify Error with Java 1.7

ObjectDB enhanced classes fail when compiled to Java 1.7 [ObjectDB 2.2.9_08 Enhancer] 28 persistable types have been enhanced: ... com.vaisala.jx.db.gdm.model.SourceType stack trace from jUnit test #1 2011-09-13 12:09 ObjectDB enhanced classes fail when compiled to Java 1.7 [ ObjectDB 2.2.9_08 Enhancer ] 28 p ...

 
forum_thread

Integration

Hi,   Is there a way to integrate ObjectDB with Spring Framework to add the benefits of Transaction Management and DAO Support?   Regards,... Notice that in the new ObjectDB build load time weaving (enhancement) by Spring is currently disabled - but this might be changed in ... Though i am pondering about the repercussions of spring enhancement not being applied. (as far as i know i'm not using loadtime ...

 
forum_thread

AttachNotSupportedException

Good morning, OS: Windows Server 2008 R2 64 bit Java: Java Server JRE 8u121 for Windows x64 ObjectDB: version 2.6.9 build 5 Problem description: ObjectDB server will start and function normally (?) but an exception is logged: "java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException" (see attachment to this thread). ... 2017-01-31 18:28 Enhancement requires the availiability of classes that are referenced from ... server doesn't need any external class. It uses enhancement internally to prepare classes based on the object model that is ...

 
release

2.0.5

... Fixed Java Agent / Java EE / Spring enhancement bug. Fixed a bug in merging detached entity ... Fixed a bug in automatic byte code enhancement in Java EE server. Fixed a bug in multi variable ...

 
forum_thread

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB.getObjectC(); } em is an open Entity Manager with a running transaction. ... Note that you should enhance all your classes. Partial enhancement is not supported. In addition, if you use reflection mode (i.e. no enhancement) you should try enhancing your classes, since enhancement improves ...

 
release

2.2.6

... eager fetch in queries. Added Maven build enhancement to the bundled examples. Fixed a schema evolution ... Fixed a bug in using persistent properties with incomplete enhancement. Version 2.2.2 Changed log format to ...