Class MembershipPersistentType

  • All Implemented Interfaces:
    Serializable, org.hibernate.usertype.UserType

    public final class MembershipPersistentType
    extends EnumPersistentType<com.atlassian.crowd.model.membership.MembershipType>
    Hibernate custom type for MembershipType since Hibernate 2 does not handle Java enumerations transparently (or at least it does, but by trying to persist their binary serialization, which is sort of broken)
    Since:
    7.20.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MembershipPersistentType

        public MembershipPersistentType()
    • Method Detail

      • returnedClass

        public Class<com.atlassian.crowd.model.membership.MembershipType> returnedClass()
        Specified by:
        returnedClass in interface org.hibernate.usertype.UserType
        Specified by:
        returnedClass in class EnumPersistentType<com.atlassian.crowd.model.membership.MembershipType>