About post compiler

manual

JPA / JDO Class Enhancer

The Enhancer is a post compilation tool that improves performance by modifying the byte code of compiled classes after compilation. ObjectDB Enhancer is a post compilation tool that improves performance by modifying the byte code of ... The following Maven build file defines a Java compiler plugin that includes enhancement: <build > ... ...

 
forum_thread

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: ... of empty targets to override in build.xml, such as -post-compile and -post-compile-single. I do not see yet how to relate the ... NetBeans Compile-on-Save seems to use the internal compiler to write .sig files, rather than .class files, to the NetBeans cache, ...

 
forum_thread

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: ... Joined on 2011-04-04 User Post #9 #2 ... Thank you for this post. Integration of enhancement into Maven is certainly useful. I ...

 
forum_thread

ObjectDB JDBC to Object compiler

Hello , some products developed by JDBC , So we cannot use ObjectDB. My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It can be Intellij or Eclipse IDE plugin for ObjectDB.   It dedects strings and combinations like "insert into ObjectT values('hasan','test')" to ObjectT obj = new ObjectT("hasan","test"); em.persist(obj);   ... My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from ... Joined on 2012-03-15 User Post #41 #2 ...

 
forum_thread

Compiled Queries and Cache

objectdb.conf has options for query results and program cache.  (objectdb.conf > database > query-cache > results and programs, http://www.objectdb.com/java/jpa/setting/database#The_query-cache_element_.) query.compile(); query.closeAll(); After code like above, are the query results and program cache still available?   ... Joined on 2016-07-08 User Post #27 #2 ... Joined on 2010-05-03 User Post #2,577 ...

 
forum_thread

Issue with compile time enhancement

I have an entity library which I have integrated build time enhancement in.  The enhancer reports it has processed all of my persistent classes.  When I attempt to run a Bootstrap process with this library I get the error shown below.  The entity referenced in the error (Terms) is listed as having been enhanced. I am running with ObjectDB in embedded mode via a reference to a persistence unit also shown below. Please let me know if you need any additional information to diagnose this problem. Thanks, Joel ... Joined on 2012-05-16 User Post #1 #2 ... Joined on 2010-05-03 User Post #1,146 #3 ...

 
forum_thread

How prevent post-compile enhancement of non entity classes

I have recently moved to post-compile enhancement (from automatic run-time enhancement) using an Ant build.xml for a NetBeans web app. My adapted build.xml works for both full project build and per-file compilation (with NetBeans "compile on save" off), but it is not yet perfect at only invoking the enhancer on entity files. For full project build the following works, by grouping entities under clearly named packages: ... I have recently moved to post-compile enhancement (from automatic run-time enhancement) using an Ant ... />   <target name = "-post-compile" > <echo message = "begin ObjectDB enhancer" ...

 
forum_thread

Pre-detach loading: retrieval by navigation not working in if statement

objectdb-2.6.3_04 JDK1.7 VM option at runtime: -javaagent:lib/objectdb.jar Experimental mode: objectdb.temp.no-detach NOT USED ... - before the if statement - that the compiler will not remove.] This does not work (is not enough) before ... before the test. [EDIT: See results of text in next post below.] I have very carefully (not shown here) also investigated ... Joined on 2011-05-27 User Post #66 #2 ...

 
forum_thread

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); prop.setProperty("javax.jdo.option.ConnectionUR","local.odb"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm = pmf.getPersistenceManager();   I am getting an error Source attachment does not contain source for File PMF.class. ... Joined on 2012-03-08 User Post #1 #2 ... Joined on 2010-05-03 User Post #966 #3 ...

 
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 ... properties, change source/binary from 1.6 to 1.7, change compiler to 1.7, clean, build and deploy to GF - see error as below: ... Joined on 2011-08-30 User Post #10 #2 ...