Class MembershipEntity

  • All Implemented Interfaces:, DbEntity

    public class MembershipEntity
    extends java.lang.Object
    implements, DbEntity
    Tom Baeyens
    See Also:
    Serialized Form
    • Field Detail

      • id

        protected java.lang.String id
        To handle a MemberhipEntity in the cache, an id is necessary. Even though it is not going to be persisted in the database.
    • Constructor Detail

      • MembershipEntity

        public MembershipEntity()
    • Method Detail

      • getPersistentState

        public java.lang.Object getPersistentState()
        Description copied from interface: DbEntity
        Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
        Specified by:
        getPersistentState in interface DbEntity
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface DbEntity
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • setUser

        public void setUser​(UserEntity user)
      • setGroup

        public void setGroup​(GroupEntity group)
      • getUserId

        public java.lang.String getUserId()
      • getGroupId

        public java.lang.String getGroupId()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object