About Entity

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: ... project. With the domain class project, I also have "Entity Listeners" so I omit those packages, but I'm a bit of a fanatic when ...

 
forum_thread

Criteria Query results in a NoResultException instead of returning object

When I run the following code    ... parameters (to improve performance and to make using entity objects in queries easier). Please try build 2.4.4_04 that ...

 
manual

[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language.... to the this reference. Persistent fields of any entity that represents a persistent object can be accessed. This includes ...

 
forum_thread

newbie - lots of exeptions

Hi  I'm very new to objectdb . I have bought a server and really want to use it. Our code works well with eclipselink and postgresql - until we stress it which is why I'm trying to get objected to work.   realy wierd things are going on ... we are using hessian to connect our remote clients to glass fish and invoke methods there (fine with postgresql) . here is our log (part of it at least .... exceptions are happening all the time when we're working with objected). ... when ObjectDB tries to scan classes in order to find entity classes and other annotations automatically. Apparently, you can ...

 
issue

InternalException when using MEMBER OF on a large list in a query

Hello, we get when executing a query with MEMBER OF on a large list the following InternalException: Caused by: com.objectdb.o.InternalException: merge2 com.btc.ep.coverage.bl.internal.dmos.CoverageRecordImpl:null => merger[2850057]-missing:223 at com.objectdb.o.PBI.B(PBI.java:124) at com.objectdb.o.PBI.q(PBI.jave:97) at com.objectdb.o.OBI.Vp(OBI.java:244) (... more see attached Image) Our query looks like this: Bug Version: Priority: High Status: Fixed Replies: 5 Type:  Bug ...

 
forum_thread

WebSphere Liberty Configuration

Hi! I've been trying to get ObjectDB configured with WebSphere Liberty server. I have been able to get the sample app running in TomCat but when I run the jee version of the guestbook in WebSphere I get a combination of errors depending on how I tweak the configuration the most promising error I get is this one: ... provider when it attempted to create the container entity manager factory for the TestDataSource persistence unit. The following ...

 
forum_thread

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

Hi, we are using ObjectDB 2.5.4_04 on Linux. Our application, which uses ObjectDb as a DB, exposes a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application internally runs SELECT NEW ... queries. For example: ... The value of the id field in entity object RecordingMetaData#9897 is Integer rather than Long. ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... to take effect. It would be simpler to use the managed entity objects as the beans, and then you do not have detached objects and ...

 
forum_thread

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, the same query was getting executed within an seconds and now the same is taking around 40 seconds in object db 2.x I have build the query using the follwoing Query query = persistanceManager.newQuery("LogEntryAttrebuteImpl.calss", "typeIndexes.contains(this.type) && logEntryIdList.contains(this.logEntryId)"); ... ERROR  [ProcessSpawner.execute:46]   15944 entity objects (total) have been migrated. 11-Sep 14:55:33 ERROR  ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... itself) that modifies a field on the base class of the entity hierarchy?   My listing of assumptions above is ...