Package com.broadleafcommerce.common.jpa
Class EntityManagerValidatorProperties
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.EntityManagerValidatorProperties
-
@ConfigurationProperties("broadleaf.jpa.validator") public class EntityManagerValidatorProperties extends ObjectProperties to control the behavior of JPA config validation performed at application startup byEntityManagerValidator.
-
-
Constructor Summary
Constructors Constructor Description EntityManagerValidatorProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)inthashCode()booleanisShouldFail()Whether or not startup should fail on JPA validation errors.booleanisShouldLog()Whether or not the system should log JPA validation errors during startup.booleanisValidateIdentifierLength()Whether or not validation should be performed on JPA element identifier length.voidsetShouldFail(boolean shouldFail)Whether or not startup should fail on JPA validation errors.voidsetShouldLog(boolean shouldLog)Whether or not the system should log JPA validation errors during startup.voidsetValidateIdentifierLength(boolean validateIdentifierLength)Whether or not validation should be performed on JPA element identifier length.StringtoString()
-
-
-
Method Detail
-
isShouldLog
public boolean isShouldLog()
Whether or not the system should log JPA validation errors during startup. True by default.
-
isShouldFail
public boolean isShouldFail()
Whether or not startup should fail on JPA validation errors. False by default.
-
isValidateIdentifierLength
public boolean isValidateIdentifierLength()
Whether or not validation should be performed on JPA element identifier length. This can be important to some older versions of Oracle DB. False by default.
-
setShouldLog
public void setShouldLog(boolean shouldLog)
Whether or not the system should log JPA validation errors during startup. True by default.
-
setShouldFail
public void setShouldFail(boolean shouldFail)
Whether or not startup should fail on JPA validation errors. False by default.
-
setValidateIdentifierLength
public void setValidateIdentifierLength(boolean validateIdentifierLength)
Whether or not validation should be performed on JPA element identifier length. This can be important to some older versions of Oracle DB. False by default.
-
canEqual
protected boolean canEqual(Object other)
-
-