About inheritance

1-10 of 72Refresh
JDO Doc
77

javax.jdo.annotations.Inheritance

javax.jdo.annotations Annotation Inheritance Target: Classes Annotation for the inheritance of the class. Corresponds to the xml element "inheritance" of the "class" and "interface" elements. Since: JDO 2.1 String customStrategy Custom inheritance strategy. Custom inheritance strategy
JPA Doc
76

javax.persistence.Inheritance

javax.persistence Annotation Inheritance Target: Classes Defines the inheritance strategy ... class hierarchy. If the Inheritance annotation is not specified or if no inheritance type ... @Inheritance(strategy=JOINED) public class Customer { ... } @Entity public class
JDO Doc
72

Inheritance.customStrategy

Annotation Element javax.jdo.annotations.Inheritance String customStrategy Custom inheritance strategy. If customStrategy is non-empty, then strategy must be UNSPECIFIED. Returns: the custom inheritance strategy Default value: "" Since: JDO 2.1
JDO Doc
72

Inheritance.strategy

Annotation Element javax.jdo.annotations.Inheritance InheritanceStrategy strategy Strategy to use for inheritance. Specifies in which table(s) the members for the class are stored. Returns: the inheritance strategy Default value: javax.jdo.annotations.InheritanceStrategy.UNSPECIFIED Since: JDO 2.1
JPA Doc
70

Inheritance.strategy

Annotation Element javax.persistence.Inheritance InheritanceType strategy The strategy to be used for the entity inheritance hierarchy. Default value: javax.persistence.InheritanceType.SINGLE_TABLE Since: JPA 1.0
Manual
43

JPA Metamodel API

: // Get all the attributes - including inherited: Set attributes1 = managedType.getAttributes(); // Get all the attributes - excluding inherited: Set attributes2 = managedType.getDeclaredAttributes(); // Get a specific attribute - including inherited: Attribute
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
Manual
21

Shared (L2) Entity Cache

MyNonCacheableEntityClass extends MyCacheableEntityClass {     ... } Cacheable is an inherited property - every entity class which is not marked with @Cacheable inherits cacheability setting from its super