Package org.cyclos.entities.messaging
Class UserNotificationTypeConverter
- java.lang.Object
-
- org.cyclos.entities.messaging.UserNotificationTypeConverter
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<UserNotificationType,String>
public class UserNotificationTypeConverter extends Object implements javax.persistence.AttributeConverter<UserNotificationType,String>
Converter used to store values of user notification types. The values have no prefix.
-
-
Constructor Summary
Constructors Constructor Description UserNotificationTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertToDatabaseColumn(UserNotificationType type)UserNotificationTypeconvertToEntityAttribute(String value)
-
-
-
Method Detail
-
convertToDatabaseColumn
public String convertToDatabaseColumn(UserNotificationType type)
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<UserNotificationType,String>
-
convertToEntityAttribute
public UserNotificationType convertToEntityAttribute(String value)
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<UserNotificationType,String>
-
-