Class TenantEntity

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String id  
      protected java.lang.String name  
      protected int revision  
    • Field Detail

      • id

        protected java.lang.String id
      • name

        protected java.lang.String name
      • revision

        protected int revision
    • Constructor Detail

      • TenantEntity

        public TenantEntity()
      • TenantEntity

        public TenantEntity​(java.lang.String id)
    • 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
        Specified by:
        getId in interface Tenant
        Returns:
        the id of the tenant
      • setId

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

        public java.lang.String getName()
        Specified by:
        getName in interface Tenant
        Returns:
        the name of the tenant
      • setName

        public void setName​(java.lang.String name)
        Specified by:
        setName in interface Tenant
      • toString

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