About Enhancer

forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... in my package.jdo have been enhanced using com.objectdb.Enhancer. (they were also enhanced when objectdb 1.0 was used) Is there ...

 
forum_thread

Different behavior with persist() and queried instances?

Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla {  @OneToMany(cascade = CascadeType.ALL) private List<AttributeEntity> metaAttributes = new ArrayList<AttributeEntity>(); } ... doing exactly the same (except not using the java agent enhancer but maven compile time enhancer but the class itself is enhanced as I can see the odbtracker field) it ...

 
forum_thread

JBoss 7 startup fails

Hi, I was having a go with entity beans 3.x jboss 7, objectdb and the guestbook web application but cannot come out of the swamp. I use eclipse indigo as IDE The "src" folder contains the pachake guest and within the classes: Guest.java, GuestListener.java and GuestServlet.java The WebContent/META-INF dir contains: context.xml ... 2.2.9_12 ] Package guest is not found by the enhancer ( error 108 ) 13:49:37,705 ERROR [ stderr ] ... Package guest is not found by the enhancer 13:49:37,706 ERROR [ stderr ] ( MSC service ... ( MSC service thread 1-3 ) at com.objectdb.Enhancer.enhance ( Enhancer. java :66 ) 13:49:37,709 ERROR ...

 
forum_thread

OneToMany and cascade delete problem

Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store") private List<Offer> offers; } second class: ... Running the test case (with enhancer enabled) produces output that ends with: Store: 4 Product: 24, ...

 
api-jdo

javax.jdo.InstanceCallbacks

A PersistenceCapable class that provides callback methods for life cycle events implements this interface.(Interface of JDO)

 
release

2.1.1

Release date: 2011-03-10 Download (3.89 MB) Binary:  objectdb-2.1.1.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... [ ObjectDB 2.4.7_15 Enhancer ] 1 persistable type has been enhanced: Person   [ ObjectDB 2.4.7_15 Enhancer ] 1 persistable type has been enhanced: Test   Stored: ...

 
forum_thread

Check for index existence ?

Hello, Is there a simple way to check if indexes specified in entities are well taken into account by ObjectDb ? Regards, Xirt #1 2016-08-06 16:09 Hello, Is there a simple way to check if indexes specified in entities are well taken into account by Obj ...

 
release

2.1.0

Release date: 2011-02-23 Download (3.89 MB) Binary:  objectdb-2.1.0.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

JSON serialization and __odbHidden members

Hi.. Building a REST API (Jersey-based one) I noticed that object object I serialize to JSON has a clone field with "__odbHidden" suffix, e.g.there's  "id" and "id__odbHidden" is also (unwantenly) present with the same value. In general, we can annotate fields to include/exclude them from JSON serialization, but since these fields are not declared in my classes, I have no idea how to tell marshaller to avoid them. ... 13:55 The ObjectDB Enhancer adds members to enhanced entity classes, but most of the additions are ... a different (and hopefully better) solution. Enhancer generated methods do not have get/set prefix now (as was also ...