About inheritance

manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps. The term persistable types refers to data types that can be used in storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes, Mapped superclasses, Embeddable cl ...

 
api-jpa

javax.persistence.Inheritance

Defines the inheritance strategy to be used for an entity class hierarchy.(Annotation of JPA)

 
forum_thread

Exception on creation when running multithreaded

Hi, I'm trying to test the creation of an object from my datamodel(Organisation) and the creation process includes the creation of an acl for the newly created organisation all in the same transaction. The process is as followed: 1. The organisation gets created 2. The acl is being searched to check if it already exists 3. if it exists it will be updated, otherwise it will be created   #1 2011-08-04 07:08 Hi, I'm trying to test the creation of an object from my datamodel(Organisation) and the creation pro ...

 
forum_thread

Usage of Inherited Class

Hi, I found a problem in ObjectDB which may be incompatible with EclipseLink and JPA. Here's the codes: // Nodes.java #1 2011-05-22 16:00 Hi, I found a problem in ObjectDB which may be incompatible with EclipseLink and JPA. The type nodes2 der ...

 
forum_thread

find() cost unreasonable time!

Hi, I make a full binary tree of 4095 node, I check the first 9 node, but the root cost 24 seconds, why? Result: ... Class of Nodes: @ Entity @ Inheritance ( strategy = InheritanceType . JOINED ) // Success for Inheritance Sonsection //@Cache(size=10000) @ DiscriminatorColumn ...

 
issue

Problem with JOIN and inheritance

Hello, Please run this query on the attached DB: SELECT DISTINCT $1 FROM com.quasado.serviceplaza.customer.VendorCustomer $1 JOIN $1.qubletFRAGMENTMAP $2, com.quasado.foundation.warehouse.contract.customer.CustomerContractsFragment $3 WHERE ((NOT (($2=$3) AND ($3.contracts IS EMPTY)))) The problem is quite easy: The "VendorCustomer" class inherits from the "Customer" class. Bug Version: 2.3.7 Priority: Normal Status: Closed Replies: 1 Type:  Bug ...

 
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; }   ... When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) ...

 
forum_thread

Does ObjectDB support inheritance of @Embeddable classes?

Does ObjectDB support inheritance of one @Embeddable into another @Embeddable ? ... Does ObjectDB support inheritance of one @Embeddable into another @Embeddable ? ...

 
forum_thread

Inherited project; missing licence details

Hello, I have taken over a project that uses object db.  I believe that we have a site licence but do not have the details of how to generate keys for servers etc.  Is there anyway that I can get this information forwarded to myself? I would rather not put my work email on a public forum but I'm more than happy to to discuss further.   Thanks Ben #1 2013-01-14 08:19 Hello, I have taken over a project that uses object db.  I believe that we have a site licence but d ...

 
api-jpa

javax.persistence.DiscriminatorColumn

Specifies the discriminator column for the SINGLE_TABLE and JOINED Inheritance mapping strategies.(Annotation of JPA)