About @Id

forum_thread

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an abstract class - but fields declared inside the abstract class are not persisted - is that expected? I assume it can be done b/c this field can be recovered after serialisation/deserialization. Here is an code to demonstrate the problem Thanks   #1 2014-06-18 01:00 Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside t ...

 
api-jpa

javax.persistence.AssociationOverride

Used to override a mapping for an entity relationship.(Annotation of JPA)

 
forum_thread

Internal exception when updating date filed (TemporalType.DATE)

Hello! ObjectDB version 2.5.3_02. I get internal exception when commiting update Date field (javax.persistence.TemporalType.DATE). #1 2014-01-24 09:50 Hello! ObjectDB version 2.5.3_02. I get internal exception when commiting update Date field (java ...

 
forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: #1 2014-05-28 13:05 Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performanc ...

 
forum_thread

Primary key generation problem after changing entity package

Hi, I changed package name for some of my entities in database. I added info in <schema><package... /></schema> of my configuration file - and the changes have been succesfully made in database. Unfortunately, sequences have been probably lost for changed entity classes. After schema change I keep getting errors : Attempt to reuse an existing primary key value... My primary keys are annotated as shown below : #1 2012-03-14 09:42 Hi, I changed package name for some of my entities in database. I added info in <schema><package ...

 
forum_thread

EntityManager refresh problem

Dear Support, in the following code you can see a EntityManager.refresh() example. The example throws an assertion error with the following statement: Assert.assertEquals("entity 1", simpleEntity1.getFieldA()); In my opinion there should be no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_06 and 2.5.7). Do you have an explanation for the assertion error? #1 2014-10-07 09:49 Hi, in the following code you can see an example with EntityManager.refresh(). The example throws an ...

 
api-jpa

javax.persistence.MapKey

Specifies the map key for associations of type java.util.Map when the map key is itself the primary key or a persistent field or property of the entity that is the value of the map.(Annotation of JPA)

 
forum_thread

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) #1 2015-06-29 11:49 Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A ...

 
api-jpa

javax.persistence.IdClass

Specifies a composite primary key class that is mapped to multiple fields or properties of the entity.(Annotation of JPA)

 
forum_thread

Merge Issue: Attempt to reuse an existing primary key value

Hello, I have just updated my objectdb version from 2.4.6 to 2.5.5. I observed a new bug or a feature on an ordinary merge operation. This is the test case ( work in 2.4.6 version ) : 2 parents object share the same child on a ManyToMany relationship with Cascade.ALL constraint. #1 2014-06-10 08:02 Hello, I have just updated my objectdb version from 2.4.6 to 2.5.5. I observed a new bug or a fea ...