|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Entity
Specifies that this class is an entity.
Optional Element Summary | |
---|---|
AccessType |
accessType
If specified, override the access type of this entity. |
String |
name
The unqualified name for this entity. |
boolean |
schemaRoot
Specifies that this entity is the root entity for the schema. |
Class |
supersetEntity
Identifies the class in which this entity is a subset. |
public abstract String name
If the name is unspecified, the unqualified name of the entity class will be used.
If the name specified is that of an entity that already exists, this entity must include a subset of the existing entity. An entity sub-set provides the entire key and/or a partial value of the parent entity and is most useful in client/server environments to reduce the amount of data that is transported across the network transport layer.
public abstract Class supersetEntity
Subset entities have the following properties:
@Entity (name="Person") public class Person {@Id long taxId;@Id String countryCode; String firstName; String lastName; String middleName;@ManyToOne Address homeAddress; String favoriteColor; String hatSize; String hairColor; String eyeColor; ... }// Subset entities have the same name, just a different class.@Entity (name="Person") public class PersonReadOnlyView { String firstName; String lastName; String middleName; }@Entity (name="Person") public class PersonReadWriteView {@Id long taxId;@Id String countryCode; String firstName; String lastName; String middleName;@ManyToOne Address homeAddress; }
public abstract AccessType accessType
public abstract boolean schemaRoot
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |