About run

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; } ... You'll find a tiny Eclipse project attached. Please run the main() in the testobjectdb.Main class. In this method: # in a ...

 
forum_thread

JBoss 7.1 and EAP 6 support

I understand that keeping up with a new version can be difficult. Having said that, JBoss 7.1.1 Final was released in early March and Enterprise Application Platform (EAP) 6, the fully supported version by RedHat which is based on 7.1, has been released recently. I would really like to use ObjectDB since I believe that I will need the performance gains you show. Is there a plan to support this version of JBoss? I would also like to ask when but I know timeframes are not really known in advance, let me just state that my project will need to go live in about 4 weeks. #1 2012-07-15 20:44 I understand that keeping up with a new version can be difficult. Having said that, JBoss 7.1.1 Final was release ...

 
forum_thread

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw something that identifies that that is the issue, say something like "MissingSchemaException", ie something that clearly shows its because no data of that type has been added? This just makes the exception catching cleaner. Thought thinking about it, it probably needs to be a JPA exception, maybe something like javax.persistence.EntityNotFoundException? ... org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at ... org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at ... org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at ...

 
forum_thread

Field not persisted in abstract class with two level of nesting

Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1  extends AS and AS extends ATT). But it seems to work fine when I skip the AS and make TZ2 extend directly from ATT. Here is an example code MHD1 ... I needed the holders. Here is the exception when I run MHD1 Exception in thread "main" [ObjectDB 2.5.6] ...

 
issue

unexpected exception - in query

I received the following exception while trying to process a query:... The stack trace indicates an attempt to run a query that calculates average on values that at least one of them is not ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     #1 2017-01-30 07:41 Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: ...

 
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 ... (pass jUnit tests), but then give similar error when run under GlassFish ..   steps to reproduce - open your ...

 
forum_thread

Shrinking Database Files

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   I thought I read something on the ObjectDB website (forum? 1.x manual?), which I cannot find now, that stated that the datastore file never shrinks when large number of objects are deleted and the only way to reclaim that space would be with Database Doctor. Is there a way to reclaim database file space? ... the only way to make the database file smaller is to run the ObjectDB doctor in repair mode (i.e. building a new database file from ...

 
forum_thread

collection of embedded objects

1. In general, are there any restrictions of the use of @Embedded objects in collections, compared to @Entity? 2. If you have a large nested collection of @Embedded objects, and you remove the parent @Entity, does the remove cascade through the whole collection? 3. Is searching through collections of @Embedded objects more expensive (time) than searching through collections of @Entity? ... space and improve performance. In many cases queries will run faster when using embedded objects, but not always. ...

 
forum_thread

objectdb explorer in ver 2.2 and 1.0

Hi   In first step  I have evaluated JPA API now I'm testing JDO API and I'have spotted that object explorer has lower functionality than in ver 2.2 eg garbarage collector or xml import/export functions are missing, could You explain why?   br Tomasz #1 2011-07-13 15:57 Hi   In first step  I have evaluated JPA API now I'm testing JDO API and I'have spotted tha ...