About entities

forum_thread

JBoss 7 startup fails

Hi, I was having a go with entity beans 3.x jboss 7, objectdb and the guestbook web application but cannot come out of the swamp. I use eclipse indigo as IDE The "src" folder contains the pachake guest and within the classes: Guest.java, GuestListener.java and GuestServlet.java The WebContent/META-INF dir contains: context.xml #1 2011-09-21 11:50 Hi, I was having a go with entity beans 3.x jboss 7, objectdb and the guestbook web application but cannot come o ...

 
forum_thread

ODB 2 JDO enhancement

If I label a class @PersistenceCapable do I still need to explicitly enhance? Do I need a package.jdo file? This question relates to experiences with ODB 1, in which one has to: a) create a package.jdo, and b) run the Enhancer In my experience, using this with Tomcat, and running the enhancer in the contextListener class, there would often be errors relating to 'class not persistent capable'. So, in ODB 2 is there a way to mark a class as @PersistentCapable, and then let ODB take care of enhancement automatically? #1 2010-11-09 20:03 If I label a class @PersistenceCapable do I still need to explicitly enhance? Do I need a package.jdo fil ...

 
forum_thread

final fields persistence

... We love the idea of using ObjetDb, but 99% of our Java entities are immutable, and auto generated ...

 
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

MapsId.value

(Optional) The name of the attribute within the composite key to which the relationship attribute corresponds.(Annotation Element of javax.persistence.MapsId)

 
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

PrimaryKeyJoinColumn.name

(Optional) The name of the primary key column of the current table.(Annotation Element of javax.persistence.PrimaryKeyJoinColumn)

 
api-jpa

InheritanceType.TABLE_PER_CLASS

A table per concrete entity class.(Enum Constant of javax.persistence.InheritanceType)

 
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 ...