public class PropertyValueConverter extends Object implements javax.persistence.AttributeConverter<Object,String>
String, Long, Double and Boolean
values are supported.| Constructor and Description |
|---|
PropertyValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToDatabaseColumn(Object attribute)
Converts an arbitrary object to it's string representation, that will be
stored in the database.
|
Object |
convertToEntityAttribute(String dbData)
Converts a string value from the database to the best matching java
primitive type.
|
Copyright © 2016 terrestris GmbH & Co. KG. All rights reserved.