About build

forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... what is expected by JPA. Anyway, please try build 2.4.7_08. Your test should pass with ID set across the hierarchy, ... Point 2 is indeed a bug. Build 2.4.7_09 fixes it. Regarding point 1, this is not valid in JPA ...

 
forum_thread

Externalising persistence.xml properties in Glassfish?

Hi, ... me having to edit manually prior deployment or rely on build scripts   --> </properties > ... and having environment specific datastore properties being build independent? I can solve the issue for PostgreSQL/mySQL and ...

 
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. ... ( 200 ) . entity ( user ) . build ( ) ; The request is of PUT method with ... 14:38 Please try build 2.6.4_03, which includes a different (and hopefully better) solution. ...

 
forum_thread

Jboss 6 persistence.xml startup error

Hi,   I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.   Here is my setup: ------- Start persistence.xml ------- ... with JBoss AS 6.0. The good news is that a new build of ObjectDB that was just released (2.2.0_03) fixes the main problems and ... ) was added to ObjectDB distribution in the new build. It is identical to objectdb.jar , except that JPA and JTA classes are ...

 
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: ... Failed to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, ... Caused by: com.objectdb.o.UserException: Failed to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, ... 2014-06-02 09:06 Build 2.5.5_06 includes a fix for this issue. Thank you for your report. ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: ... objects after field type change as invalid were removed in build 2.4.5_05. ObjectDB Support ObjectDB - Fast ... You may also try fixing the index with the Doctor of build 2.4.5_05. ObjectDB Support ObjectDB - ...

 
forum_thread

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: <bean id="EnvDMSEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="envService"/> <property name="persistenceXmlLocation" value="com/awarepoint/persistence.xml"/> </bean> Here is the stack trace I get: ... 14:21 Please try build 2.5.1_06 that should silently ignore this specific exception. ... 2013-08-07 15:38 Build 2.5.1_06 now works great! Thank you very much for the quick build, ...

 
issue

Error during closing an entity manager

Hello, can you explain the the following exception? Caused by: com.objectdb.o._PersistenceException: Failed to read the value of field field com.btc.ep.architecture.bl.internal.dmos.types.NormalizedAccessPathImpl.accessPathRoot using reflection at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[na:na] at com.objectdb.o.JPE.g(JPE.java:145) ~[na:na] at com.objectdb.o.ERR.f(ERR.java:56) ~[na:na] at com.objectdb.o.OBC.onObjectDBError(OBC.java:1560) ~[na:na] at com.objectdb.o.OBM.close(OBM.java:212) ~[na:na] ... But we have done a full clean and build of our entity classes and there cannot be any enhanced entites and in ... have a way to reproduce it? i.e. if we release a build with an attempt to fix it would you be able to check it? ...

 
release

2.2.3

... of eager fetch in queries. Added Maven build enhancement to the bundled examples. Fixed a schema ... 3 Build:  0 ...

 
release

2.2.4

... of eager fetch in queries. Added Maven build enhancement to the bundled examples. Fixed a schema ... 4 Build:  0 ...