Package org.javers.core.metamodel.type
Class ValueObjectType
- java.lang.Object
-
- org.javers.core.metamodel.type.JaversType
-
- org.javers.core.metamodel.type.ManagedType
-
- org.javers.core.metamodel.type.ValueObjectType
-
public class ValueObjectType extends ManagedType
ValueObject class in client's domain model.
Has list of mutable properties but no unique identifier.
Two ValueObjects are compared property by property.
Example:class Address { private String city; private String street; private String zip; ... }
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description ValueObjectType(java.lang.Class baseJavaClass, java.util.List<JaversProperty> allProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBePrototype()
java.lang.Class
getBaseJavaClass()
boolean
isInstance(java.lang.Object cdo)
java.lang.String
smartToString(java.lang.Object value)
-
Methods inherited from class org.javers.core.metamodel.type.ManagedType
findProperty, forEachProperty, getProperties, getProperties, getProperty, getPropertyNames, getRawDehydratedType, prettyPrintBuilder
-
Methods inherited from class org.javers.core.metamodel.type.JaversType
equals, equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, spawnConstructorArgs, spawnConstructorArgTypes, toString
-
-
-
-
Constructor Detail
-
ValueObjectType
public ValueObjectType(java.lang.Class baseJavaClass, java.util.List<JaversProperty> allProperties)
-
-
Method Detail
-
canBePrototype
public boolean canBePrototype()
-
smartToString
public java.lang.String smartToString(java.lang.Object value)
-
isInstance
public boolean isInstance(java.lang.Object cdo)
- Specified by:
isInstance
in classJaversType
-
getBaseJavaClass
public java.lang.Class getBaseJavaClass()
-
-