Class SimpleEntity

    • Constructor Detail

      • SimpleEntity

        public SimpleEntity()
    • Method Detail

      • getId

        public static Long getId​(SimpleEntity entity)
        Returns the identifier of the given entity, handling nulls
      • getUniqueIds

        public static Set<Long> getUniqueIds​(Collection<? extends SimpleEntity> entities)
        Returns a set with entity identifiers, handling nulls
      • getUniqueIds

        public static Set<Long> getUniqueIds​(SimpleEntity... entities)
        Returns a set with entity identifiers, handling nulls
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isPersistent

        public boolean isPersistent()
      • isTransient

        public boolean isTransient()
      • toShortString

        public String toShortString()