About on the fly enhancement

51-60 of 200Refresh
Forum
5

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected
Forum
5

Invalid file type for enhancement (error 104)

Trying to run enhancement, I get:    [ObjectDB 2.5.5_05] Invalid file type for enhancement: /home ... ) com.objectdb.o.UserException: Invalid file type for enhancement: /home/steve/java/spiffymap-svn ... .objectdb.Enhancer.main(Enhancer.java:32) Could you give some help as to what this issue
Forum
5

Measurement of the test coverage of enhanced classes

to our customers. Therefore we think we need to test the enhanced classes. But that distorts our test ... "coverage" of our tests? Enhancement adds code to persistent classes so it would affect test coverage ... ) rather than on the class file and JVM instructions may not be affected by code that is added by enhancement
Issue
5

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient ... javaagent run-time enhancement or post-compile enhancement, and on complete clean and build in ... ] Type com.example.entity.Element is not enhanced. ... But it is ok using the 'get' getter form
Forum
5

Enhancement from gradle build file

Just wondering if it's possible to add enhancement in the gradle build file after compilation ... seems to work: task enhance(type: JavaExec) {   main = 'com.objectdb.Enhancer'   classpath ... _two.*' } compileGroovy.finalizedBy(enhance)   note, for java, you want compileJava instead of compileGroovy. dmoshal
Issue
5

Enhancer: non-zero exit code at exceptions

Hello, we have found that the enhancer returned an non-zero exit code on errors. You can change this so that the error of the enhancers can be detected. Thank you for this report. Starting build 2.6.1_04 the Enhancer exits with non zero code on errors. Note that System.exit is now invoked
Forum
5

OEM license, enhancer

for each customer system when we are using enhancer.  As we want to ship a standard database with the system which was created before having the OEM license and before adding enhancer to our maven ... you distribute your software with entity classes that have been enhanced by the Enhancer in OEM mode
Issue
5

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the removal of an entry from a @OneToMany collection ... .getChildEntityContainer().remove("01"); does not work correctly with not enhanced JPA entities ... . It represents an issue with non enhanced classes, but it is not related to @OneToMany collection. Any change
Forum
5

Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03

After updating some of my code to java 8, enhancement threw "unexpected" exceptions from ... have been related to the java 8 update. In any event, my enhancement problem went away when I updated ... build 2.5.6 should also support Java 8, but the project has to be rebuilt and enhanced
Forum
5

Option or strategy to disable/skip runtime enhancement checks (to improve load time)?

On startup of a Maven-based web app there is verbose logging of object checking whether enhancement ... . For example, it is checking whether PrimeFaces JSF toolkit classes are enhanced. I am using Maven-based compile-time enhancement applied to entity modules (only), so I know these checks