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 and 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.
- See Also:
- Author:
- Andrei Ilitchev
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionProperty name.String representation of Property value, converted to an instance of valueType(). -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameProperty name. -
value
String valueString representation of Property value, converted to an instance of valueType(). -
valueType
Class<?> valueTypeProperty value type. The value is converted to valueType by ConversionManager.If specified must be a simple type that could be handled by ConversionManager: numerical, boolean, temporal.
- Default:
java.lang.String.class
-