|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=SOURCE) public @interface RooEntity
Provides services related to JPA.
Using this annotation also triggers RooBeanInfo
.
Optional Element Summary | |
---|---|
String |
catalog
Specifies the database catalog name that should be used for the entity. |
String |
countMethod
|
String |
findAllMethod
|
String |
findEntriesMethod
|
String[] |
finders
|
String |
findMethod
|
String |
flushMethod
|
String |
identifierColumn
Specifies the column name that should be used for the identifier field. |
String |
identifierField
Creates an identifier, unless there is already a JPA @Id field annotation in a superclass (either written in normal Java source or introduced by a superclass that uses the RooEntity
annotation. |
Class<? extends Serializable> |
identifierType
|
String |
inheritanceType
Specifies the JPA inheritance type that should be used for the entity. |
boolean |
mappedSuperclass
|
String |
mergeMethod
|
String |
persistenceUnit
|
String |
persistMethod
|
String |
removeMethod
|
String |
schema
Specifies the database schema name that should be used for the entity. |
String |
table
Specifies the table name that should be used for the entity. |
String |
versionColumn
Specifies the column name that should be used for the version field. |
String |
versionField
Creates an optimistic locking version field, unless there is already a JPA @Version field annotation in a superclass (either written in normal Java source or introduced by a superclass that uses the RooEntity annotation. |
Class<? extends Serializable> |
versionType
|
public abstract Class<? extends Serializable> identifierType
Long
; must be provided)public abstract String identifierField
RooEntity
annotation.
If you annotate a field with JPA's @Id annotation, it is required that you provide a public accessor for that field.
public abstract String identifierColumn
identifierField()
, although it will be made unique as required for
the particular entity fields present.
public abstract String versionField
RooEntity
annotation. The produced field will be of the type specified by versionType()
.
If you annotate a field with JPA's @Version annotation, it is required that you provide a public accessor for that field.
public abstract String versionColumn
versionField()
, although it will be made unique as required for
the particular entity fields present.
public abstract Class<? extends Serializable> versionType
Integer
; must be provided)public abstract String persistMethod
public abstract String flushMethod
public abstract String mergeMethod
public abstract String removeMethod
public abstract String countMethod
public abstract String findAllMethod
public abstract String findMethod
public abstract String findEntriesMethod
public abstract String[] finders
public abstract String persistenceUnit
public abstract boolean mappedSuperclass
public abstract String table
public abstract String schema
public abstract String catalog
public abstract String inheritanceType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |