|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,FIELD,TYPE}) @Retention(value=RUNTIME) public @interface Property
Annotation for a user defined property. A single Property may be specified directly on a mapped attribute or its get/set method. Multiple Properties should be wrapped into Properties annotation. Property may be assigned to either a mapped attribute (or its get/set method) within Entity, MappedSuperclass and Embeddable class; or to Entity, MappedSuperclass and Embeddable class. In case orm xml is used Property an Properties annotations specified on mapped attributes are ignored, specified on a class are merged with the ones specified in orm xml with the latter taking precedence in case of conflicts. Properties defined in MappedSuperclass are passed to all inheriting Entities and MappedSuperclasses. In case of a conflict property value defined directly on a class always overrides the value passed from class's parent.
Embeddable
,
Entity
,
Id
,
Basic
,
ManyToMany
,
ManyToOne
,
MappedSuperclass
,
OneToMany
,
OneToOne
,
BasicCollection
,
BasicMap
,
Properties
,
Transformation
,
VariableOneToOne
Required Element Summary | |
---|---|
java.lang.String |
name
Property name. |
java.lang.String |
value
String representation of Property value, converted to an instance of valueType. |
Optional Element Summary | |
---|---|
java.lang.Class |
valueType
Property value type. |
Element Detail |
---|
public abstract java.lang.String name
public abstract java.lang.String value
public abstract java.lang.Class valueType
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |