About inheritance

11-20 of 72Refresh
Forum
22

Does ObjectDB support inheritance of @Embeddable classes?

Does ObjectDB support inheritance of one @Embeddable into another @Embeddable ? Yes. ObjectDB supports hierarchy of embeddable classes. webel
Issue
22

Problem with JOIN and inheritance

)))) The problem is quite easy: The "VendorCustomer" class inherits from the "Customer" class. Now with this query
Issue
22

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; }   public EntityB() extends EntityA() {     @Id     long id;     String field2
Forum
20

Inherited project; missing licence details

Inherited project; missing licence details
Forum
20

Usage of Inherited Class

Usage of Inherited Class
Manual
16

Server User List

definition. All the settings of that master definition are automatically inherited by all the other user
JPA Doc
12

javax.persistence.MappedSuperclass

information is applied to the entities that inherit from it. A mapped superclass has no separate table ... for the mapped superclass itself. When applied to the subclasses the inherited mappings will apply in ... @Entity public class FTEmployee extends Employee { // Inherited empId field mapped
JPA Doc
8

javax.persistence.DiscriminatorColumn

for the SINGLE_TABLE and JOINED Inheritance mapping strategies. The strategy and the discriminator ... which a different inheritance strategy is applied If the DiscriminatorColumn annotation is missing ... ") @Inheritance(strategy=SINGLE_TABLE) @DiscriminatorColumn(name="DISC", discriminatorType=STRING, length
JPA Doc
8

javax.persistence.DiscriminatorValue

. The inheritance strategy and the discriminator column are only specified in the root of an entity class hierarchy or subhierarchy in which a different inheritance strategy is applied. The discriminator ... : @Entity @Table(name="CUST") @Inheritance(strategy=SINGLE_TABLE) @DiscriminatorColumn
JPA Doc
6

javax.persistence.PrimaryKeyJoinColumn

: Customer and ValuedCustomer subclass @Entity @Table(name="CUST") @Inheritance(strategy ... class ValuedCustomer extends Customer { ... } Since: JPA 1.0 See Also: SecondaryTable Inheritance