Class EntityVO

    • Constructor Detail

      • EntityVO

        public EntityVO()
    • Method Detail

      • id

        public static Long id​(EntityVO vo)
        Returns the identifier of the given vo, handling nulls
      • ids

        public static List<Long> ids​(Iterable<? extends EntityVO> vos)
        Returns a list with vo identifiers, handling nulls
      • uniqueIds

        public static Set<Long> uniqueIds​(Iterable<? extends EntityVO> vos)
        Returns a set with vo identifiers, handling nulls
      • equals

        public boolean equals​(Object obj)
        Id has priority. If one has an id and the other doesn't, they are different. If both have ids, check equality by id. If none has id, equality is based on the data accessor (all properties must be equal).
        Overrides:
        equals in class EntityModel