Refactored value object to entity, definition was backwards

This commit is contained in:
Kenny Bastani
2016-12-31 05:05:32 -05:00
parent 02eec8d4b3
commit be991ee79c

View File

@@ -0,0 +1,16 @@
package demo.domain;
import org.springframework.hateoas.Identifiable;
import java.io.Serializable;
/**
* {@link Value} objects are wrappers that contain the serializable properties that uniquely identify an entity.
* Value objects contain a collection of relationships. Value objects contain a collection of comparison operators.
* The default identity comparator evaluates true if the compared objects have the same identifier.
*
* @author Kenny Bastani
*/
public interface Value<ID extends Serializable> extends Identifiable<ID> {
}