About entities

forum_thread

Unexpected exception (Error 990)

I have a huge amount of inserts/updates and after a about 850.000 Entities I got the following error:   ... a huge amount of inserts/updates and after a about 850.000 Entities I got the following error: [ObjectDB 2.4.7_16] Unexpected ...

 
forum_thread

Activation error on Schema change

Hi, 1) Is @OrderBy annotation supported ? When I add this annotation to my entity I get an error, saying that I did not activate my ObjectDB (which I did) : #1 2012-02-28 12:05 Hi, Is @OrderBy annotation supported ? When I add this annotation to my entity I get an error, sayin ...

 
forum_thread

Indexes broken after schema update.

Anyone else noticed this? I updated an entity Object with some new fields, restarted the database to pick up the new schema and now none of the indexes work, except the @Id. I can query by any field that is not indexed on the existing Object but as soon as I try and query against a field that was indexed I get no results. Tried 2.4.2 and 2.4.2_02 with same results. #1 2012-08-19 07:12 Anyone else noticed this? I updated an entity Object with some new fields, restarted the database to pick ...

 
forum_thread

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap<String, String> { (...) }     ... Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I ...

 
api-jpa

ValidationMode.AUTO

If a Bean Validation provider is present in the environment, the persistence provider must perform the automatic validation of entities.(Enum Constant of javax.persistence.ValidationMode)

 
forum_thread

Indexing a field results in internal Exception

I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index annotation to the field I eventually end up with an ObjectDB internal exception.  This is reproducible, as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might result in this exception? #1 2013-04-21 20:40 I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with in ...

 
api-jpa

ManyToMany.targetEntity

(Optional) The entity class that is the target of the association.(Annotation Element of javax.persistence.ManyToMany)

 
issue

When using inheritance, you can specify, which ID to use

When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) should be used for new object. For example: public EntityA() {     @Id     long id;     String field1; }   Feature Request Version: 2.0.5 Priority: Normal Status: Active Replies: 0 Type:  Feature Request ...

 
forum_thread

Is an objectdb.conf required when providing test case projects here?

I am not sure whether it is mentioned anywhere (it does not seem to be given as an option under http://www.objectdb.com/java/jpa/setting) but it seems that ObjectDB projects run without an objectdb.conf (as long as <activation> is not required for > 10 entity classes). Q: In the case where omitting the objectdb.conf does not impact on a problem being reported and diagnosed, is it acceptable to completely omit the objectdb.conf when providing (links to) mini test projects here on this forum and the issue queues ? #1 2016-08-15 14:20 I am not sure whether it is mentioned anywhere (it does not seem to be given as an option under http://www.o ...

 
issue

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink.  Glassfish3.0.1 objectdb-2.2.5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft Where getWidthPxSideBarLeft() is an annotated getter of an entity ViewConfiguration: Bug Version: 2.2.6 Priority: High Status: Fixed Replies: 9 Type:  Bug ...