org.eclipse.persistence.annotations.Transformation , org.eclipse.persistence.annotations.WriteTransformer , Transformation can be specified within an Entity, MappedSuperclass and Embeddable class.
| Modifier and Type | Method and Description |
|---|---|
| public String | method()
The mapped class must have a method with this name which returns a value to be assigned to the attribute (not assigns the value to the attribute). |
| public Class | transformerClass()
User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface. |
| method | back to summary |
|---|---|
| public String method() The mapped class must have a method with this name which returns a value to be assigned to the attribute (not assigns the value to the attribute). Either transformerClass or method must be specified, but not both. | |
| transformerClass | back to summary |
|---|---|
| public Class User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface. The class will be instantiated, its buildAttributeValue will be used to create the value to be assigned to the attribute. Either transformerClass or method must be specified, but not both. | |