Internal Website Search

1-50 of 200 results

JPA Class Enhancer

ObjectDB Enhancer is a post compilation tool that improves performance by modifying the byte code of compiled classes after compilation. Enhancement is mainly for user-defined persistable classes ... . There is one case, however, where enhancement is required. Non persistable classes that access directly (not

Entity Management Settings

The element specifies enhancement related settings: The agent attribute (whose value is "true" or "false" ) specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly ... , supported only on selected JVMs. The reflection attribute specifies how non enhanced classes

Cascading (persist) with a mix of enhanced and not enhanced entities

We find out that it is actual not possible to use enhanced and not enhanced entities together. Exist any limitations regarding the use of enhanced and non- enhanced entities? We work based feature and want to load other bundles as an artifact from the Nexus. These are always enhanced . To enhance

Post-compilation enhancement vs Automatic Run-time enhancement

enhancement and automatic run-time enhancement . Testing exactly where and when the results are different ... LAYER depending on the enhancement stragegy). Can you please explain how this could possibly be so ? Why aren't the 2 enhancement techniques giving identical data access results ? webel Dr Darren Kelly

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb-2.6.9_02 (with "objectdb.temp.no- enhancement -crc-check" system property ... for " Enhancement of type ... is old and cannot be used" This report concerns investigation of issues ... script invoked using Clean and Build that enhances every entity class in the system. - Very important

enhanced object .. NOT enhanced

Hi  I think I have found a bug :  - I have enhanced a class but when I tried to persitst ... we get an OutOfMemory expeption. b bolo Boguslaw Fraszko I have enhanced a class but when I tried ... is triggered. Using serialization is not the result of no enhancement but of a missing @Entity

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license ... & ObjectDB and to all domains, because there are the entities. Now we get an error when we have enhanced ... enhanced classes. We have an ANT script in “com.btc.ep.base.dal.impl” to enhance the classes. The log

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: [2015-06-08 13:07:02 #1 type.user] Enhancement of type com.btc.ep ... .ScopeRequirementContainerImpl is not enhanced . [2015-06-08 13:07:02 #3 type.user] Enhancement of type com.btc.ep ... .RequirementReferenceImpl is not enhanced . We understand the reason of the messages #2 and #4 "Type ... 

com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully.

to implement Enhancement (because the log always says that the classes are not enhanced ). The main class ... [] args) { Enhancer . enhance (   "common.app.Model,common.model.*,mr.model.*", Model.class.getClassLoader()); Here is the output, it seems like the above code does manage to enhance . Then another process

UserException: Package com.example.model is not found by the enhancer

the enhancer It occurs on this line: com.objectdb. Enhancer . enhance ("com.example.model ... how the enhance () method looks up the model path since it will be inside the example.jar after building?   ThreaT Ashton Hogan It may be a class loader conflict, i.e. the Enhancer and your classes are loaded

enhancement issue

Hi, still struggling with the enhancement issue. So, this works fine in development: static void main ( String[] args ) {     com.objectdb. Enhancer . enhance ( "app.model ... : [ObjectDB 2.7.1_02] Package app.model is not found by the enhancer (error 108) com.objectdb.o

a second mapping-file is ignored in persistence.xml by enhancer

Hello Support-Team, we have a problem with the enhancer . In the persistence.xml are two mapping-files: META-INF/orm.xml META-INF/ormreq.xml We start the enhancer and the entities of orm.xml will be enhanced by following output: enhancer : [java] [ObjectDB 2.6.0_02 Enhancer ] [java] 3 persistable

Enhancement API - NullPointerException

Hi! I am trying to use the Enhancement API from within my application like this: com.objectdb. Enhancer . enhance ("my.package.Foo"); However, I get the following NullPointerException: [ObjectDB 2.7.1 ... (JEL.java:490) at com.objectdb.o.JEN.m(JEN.java:103) at com.objectdb. Enhancer . enhance ( Enhancer .java

Enhancer problem

During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. com.objectdb. Enhancer . enhance ("com.fastmodel.fastplan.entities.*"); com.objectdb. Enhancer . enhance ("com.fastmodel.fastplan.entities.comm.*"); com.objectdb. Enhancer . enhance ("com

Custom Classloader: Issues with the Enhancer Agent

(); } } } This works great without the Enhancer Agent, but once the Agent is enabled it is causing issues and I ... this is because the Agent intercepts my call to defineClass(), makes the enhancement to the class and loads the modified ... seems to call back to my classloader (loadClass()/findClass()/...) as part of the enhancement process, resulting in a recursive

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

were made to the way enhancement treats getters and setters (property accessors), namely there are no longer enhanced additional getters/setters, because the additional methods now use (since about version 2-6 ... for various tasks, including for diagnosing whether enhancement has indeed taken place, leading

Updating JPA Entity Objects

on commit. A more efficient way to detect changes automatically is described in the Enhancer section in ... are enhanced . Therefore, for efficiency purposes, the default behavior of ObjectDB ignores array changes when using enhanced entity classes: Employee employee = em. find (Employee.class, 1); em

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

enhancer .agent] Not Enhanced : com/example/ejb/query/__EJB31_Generated__ExampleQuery__Intf__: com.objectdb ... .SCM.w(SCM.java:455) ... 76 more Severe: [2016-10-30 09:16:46 #6 enhancer .agent] I am using post-compile ObjectDB enhancement in an Ant script that targets folders with @Entity classes only.    

ObjectDB Enhancer Tool in Java 9

try to run com.objectdb. Enhancer from that module, but ObjectDB gives the error below.  My guess ... -Dobjectdb.conf=ObjectDb.conf --module-path com.objectdb.jar --module com.objectdb/com.objectdb. Enhancer ... ) at com.objectdb/com.objectdb.o.JEN. (JEN.java:67) at com.objectdb/com.objectdb. Enhancer .main( Enhancer

OEM Enhancer causing Jenkins job to freeze

Hi all, We are using ODB enhancer in one of our jobs on jenkins, built via ant. Recently ... for enhancer ? To see where exactly it gets stuck during it's execution? Also, our Jenkins machine ... the Enhancer doesn't need access to the Internet. Sometimes, however, an attempt to access

Failed to enhance dynamic type

Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class ... of our custom interface and should of course, NOT be enhanced . Yet, we get an error due enhancing : Failed ... why he does even try to generate dynamic type?? Can he simply ignore such things and enhance

Enhancement of type is old and cannot be used

:   [2021-01-26 15:20:33 #22 type.user] Enhancement of type eu.extech.quant.listing.data ... :33 #23 type] Type eu.extech.quant.listing.data.ProductListingRequest is not enhanced . [2021-01-26 15:20:33 #24 type] Type eu.extech.quant.listing.data.ProductListingStateChangeList is not enhanced

Enhancer -s broken

Hi, after upgrading to ObjectDB 2.5.4_04 we noticed that the enhancer option -s is currently broken. According to your docs we've added the enhancer to our ant build: unfortunalety is is only enhancing ${bin.dir}/org/tinymediamanager/core/ and no sub packages/directories. With earlier versions (2

Compile time enhancement using build.xml of a Netbeans web application

of a Netbeans web application project to specify ObjectDB compile time enhancement , for both single ... for Netbeans uploaded here would be very helpful. Until now I have been working with run-time enhancement ... enhancement and JRebel , as reported under:  JRebel integration feature , so I want to try compile time

ODB 2 JDO enhancement

If I label a class @PersistenceCapable do I still need to explicitly enhance ? Do I need a package ... .jdo , and b) run the Enhancer In my experience, using this with Tomcat, and running the enhancer in ... of enhancement automatically? Alternatively, is there a best practice for enhancement in a web environment

Database Management Settings

- you should only activate ObjectDB on developer machines. Classes that are enhanced by the ObjectDB Enhancer ... runtime is bundled in a product that uses only signed enhanced persistable classes - activation by end users is unnecessary.

JPA Entity Fields

is enhanced (explained in chapter 5 ) or a version field is explicitly defined. Property Access

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables that represent iteration over objects in the database. A query identification variable is similar to a variable of a Java enhanced for loop in a program, since both are used for iteration over objects. Range Variables Range variables

ObjectDB 2.9 Developer's Guide

, the Enhancer , the Doctor, etc.             

Running JPA Queries

;result collection of a parameterized type can be iterated easily using an enhanced for loop: for (Country

ObjectDB Object Database Features

enhancement is optional (recommended before deployment). Schema Evolution Fully automatic schema evolution

[ODB1] Chapter 3 - Persistent Classes

without implementing the PersistenceCapable interface, and have the JDO Enhancer add the interface implementation automatically, as explained in section 3.3 . ObjectDB's JDO Enhancer also adds a no-arg ... . 3.3  JDO Enhancement The ObjectDB JDO Enhancer is a post compilation tool that modifies

Enhancer option to enhance all persitable types

Hello, can you add an option to the Class Enhancer to enhance all persistable types and ignore the NON persistable types. Like the Load Time Enhancement . btc_es BTC EmbeddedSystems A new argument (undocumented yet) was added to the Enhancer in build 2.6.2_06: java -cp objectdb.jar com.objectdb

[ODB1] Chapter 2 - A Quick Tour

, and a special tool, the JDO enhancer , adds the implementation automatically. The Person Persistent ... become persistent using the JDO enhancer . JDO Metadata Every persistent class must be declared as persistent in ... PersistenceCapable Something is still missing to make this program work - the JDO enhancement . 2.4  

Step 3: Add a Context Listener Class

the EntityManagerFactory & Enhance : public void contextInitialized(ServletContextEvent e) { com.objectdb. Enhancer . enhance ("guest.*"); EntityManagerFactory emf = Persistence.createEntityManagerFactory ... the Enhancer to enhance the entity class, creates an EntityManagerFactory instance and stores

Step 3: Add a Context Listener Class

GuestListener implements ServletContextListener { // Prepare the EntityManagerFactory & Enhance : public void contextInitialized(ServletContextEvent e) { com.objectdb. Enhancer . enhance ("guest ... ().getAttribute("emf"); emf.close(); } } The code above: Invokes the Enhancer to enhance the entity class

Unexpected exception during query, if entity is not enhanced

Hello, the entity TCVector is not enhanced and the enhancement check in the objectdb.conf ... that the activated enhancement check would throw an exception. In a parallel secondary thread we got the following ObjectDB log entry. ObjectDb Log: Enhancement of type com.btc.ep.vector.tc.internal.dmos

Enhanced classes problem

Hell, we have problem with the OEM enhancement licencing. When we used runtime licencing using machine activation code, everything works fine. But when we enhanced our classes with OEM licence ... of field field eu.ysoft.safeq.core.cache.entity.CacheableJobStat.jais using enhanced method at com

Tracking changes to new collections (in enhancement mode) after flush

;consistently? is it reproducible? Does it happen with enhanced classes or in reflection mode ... with enhanced classes, without enhanced classes all works correctly as expected currently we use ... BTC EmbeddedSystems It seems like a failure in automatic tracking of changes in enhanced classes

Enhancing a class causes it to not save changes.

So when we enhance the Account class, no changes are saved to it. When it is reflection mode ... that have not existed for ages.  In enhancement  mode, there are no exceptions. I can't figure ... models, the objectdb logs for both the enhanced and unenhanced versions, and the objectdb.conf

Enhancement does not show an error message when an outdated license is used

2.8.7.b08 Accidentally we used an outdated ObjectDB license, if we enhance the entities. The entities were not enhanced in our jars. But the message from the enhancement tool com.objectdb. Enhancer shows that all entites are enhanced . Can you throw an error message, if the license is outdated

Enhancer option -s works not as expected

We found a bug in the enhancer with the option -s . Given structure: com |- btc |- |- base ... |- |- |- |- |- Entity2.class   ... com.objectdb. Enhancer -noaware -s com.btc.base.impl.* Entity1 and Entity2 enhanced as expected. ... com.objectdb. Enhancer -noaware -s com.btc.base.* Entity1

Unexpected exception when execute query without enhanced entities

ObjectDB 2.8.7.b08 Our entities are not enhanced and we execute a query "select max(uid) from ... an exception with a message like "the entities are not enhanced ..." instead of the UserException: Unexpected query token 'uid'. If the entities are enhanced then the query works without exception. btc

Step 1: Create a Maven Web Project

.2 enhance process-classes java com.objectdb. Enhancer guest.Guest org.mortbay.jetty maven-jetty

Step 1: Create a Maven Web Project

;         enhance        process ... ;  com.objectdb. Enhancer              

Step 7: Run the Spring Web App

automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ( javaagent:objectdb.jar). When using GlassFish - on the fly enhancement (weaving) is automatically enabled

Step 7: Run the Spring Web App

server and open the database file in ObjectDB Explorer : To enable on the fly enhancement (weaving ... the server node and select Restart. When using GlassFish - on the fly enhancement (weaving) is automatically

[ODB1] Chapter 6 - Persistent Objects

, is done automatically by the JDO enhancer . Non persistent classes that directly access persistent fields ... through the JDO enhancer , which enhances them to include the code needed for transparent persistence. But, because these classes are not described in the JDO metadata files, the enhancer identifies them as not

[ODB1] Chapter 4 - JDO Metadata

file. The metadata is used first by the JDO Enhancer , and later by the JDO ... and the other resources (possibly in a jar file). 4.1  JDO Metadata Files During JDO enhancement and later

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using: