Package com.github.microtweak.jac4e.core
Class BaseEnumAttributeConverter<E,V>
- java.lang.Object
-
- com.github.microtweak.jac4e.core.BaseEnumAttributeConverter<E,V>
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<E,V>
public class BaseEnumAttributeConverter<E,V> extends Object implements javax.persistence.AttributeConverter<E,V>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description BaseEnumAttributeConverter(Class<E> enumType, Class<V> valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VconvertToDatabaseColumn(E attribute)EconvertToEntityAttribute(V dbData)voidsetAttributeName(String attributeName)voidsetErrorIfValueNotPresent(boolean errorIfValueNotPresent)
-
-
-
Field Detail
-
DEFAULT_ATTRIBUTE_NAME
public static final String DEFAULT_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAttributeName
public void setAttributeName(String attributeName)
-
setErrorIfValueNotPresent
public void setErrorIfValueNotPresent(boolean errorIfValueNotPresent)
-
-