V - The type of the Value Objectpublic interface CompoundType<V>
A Compound Value object should contain multiple properties that are stored
separately. If you only have a single scalar value you should instead look to
use ScalarTypeConverter.
For each property in the compound type you need to implement the
CompoundTypeProperty interface. These must be returned from
getProperties() in the same order that the properties appear in the
constructor.
If your compound type is mutable then you should look to use the JPA Embedded annotation instead of implementing this interface.
When using classpath search Ebean will detect and automatically register any implementations of this interface (along with detecting the entity classes etc).
ScalarTypeConverter| Modifier and Type | Method and Description |
|---|---|
V |
create(Object[] propertyValues)
Create an instance of the compound type given its property values.
|
CompoundTypeProperty<V,?>[] |
getProperties()
Return the properties in the order they appear in the constructor.
|
V create(Object[] propertyValues)
CompoundTypeProperty<V,?>[] getProperties()
Copyright © 2016. All rights reserved.