Home » Search

About inheritance

1-10 of 72Refresh
JDO Doc
87

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
85

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
Manual
83

JPA Persistable Types

and inherit their behavior. The difference can be noticed in the debugger view and when invoking
JDO Doc
80

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
80

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
79

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
49

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
25

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
25

Problem with JOIN and inheritance

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

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