Refactored value object to entity, definition was backwards
This commit is contained in:
@@ -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> {
|
||||
}
|
||||
Reference in New Issue
Block a user