Package org.javers.core.metamodel.clazz
Class ClientsClassDefinitionBuilder<T extends ClientsClassDefinitionBuilder>
- java.lang.Object
-
- org.javers.core.metamodel.clazz.ClientsClassDefinitionBuilder<T>
-
- Direct Known Subclasses:
EntityDefinitionBuilder,ValueObjectDefinitionBuilder
public abstract class ClientsClassDefinitionBuilder<T extends ClientsClassDefinitionBuilder> extends java.lang.Object- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientsClassDefinitionbuild()TwithIgnoredProperties(java.lang.String... ignoredProperties)TwithIgnoredProperties(java.util.List<java.lang.String> ignoredProperties)List of class properties to be ignored by JaVers.TwithIncludedProperties(java.util.List<java.lang.String> includedProperties)If included properties are defined for a class, only these properties are visible for JaVers, and the rest is ignored.TwithShallowProperties(java.util.List<java.lang.String> shallowProperties)Equiv to the property-levelShallowReferenceannotations.TwithTypeName(java.lang.String typeName)TwithTypeName(java.util.Optional<java.lang.String> typeName)
-
-
-
Method Detail
-
withIgnoredProperties
public T withIgnoredProperties(java.lang.String... ignoredProperties)
- See Also:
withIgnoredProperties(List)
-
withIgnoredProperties
public T withIgnoredProperties(java.util.List<java.lang.String> ignoredProperties)
List of class properties to be ignored by JaVers.
Properties can be also ignored with theDiffIgnoreannotation.
You can either specify includedProperties or ignoredProperties, not both.- Throws:
java.lang.IllegalArgumentException- If includedProperties was already set.- See Also:
DiffIgnore
-
withIncludedProperties
public T withIncludedProperties(java.util.List<java.lang.String> includedProperties)
If included properties are defined for a class, only these properties are visible for JaVers, and the rest is ignored.
Properties can be also included with theDiffIncludeannotation.
You can either specify includedProperties or ignoredProperties, not both.- Throws:
JaversException- If ignoredProperties was already set
-
withShallowProperties
public T withShallowProperties(java.util.List<java.lang.String> shallowProperties)
Equiv to the property-levelShallowReferenceannotations.
-
withTypeName
public T withTypeName(java.util.Optional<java.lang.String> typeName)
-
withTypeName
public T withTypeName(java.lang.String typeName)
-
build
public ClientsClassDefinition build()
-
-