org.hibernate
Class PropertyValueException
- Nestable
public class PropertyValueException
Thrown when the (illegal) value of a property can not be persisted.
There are two main causes:
- a property declared not-null="true" is null
- an association references an unsaved transient instance
getCause , getMessage , getMessage , getMessages , getThrowable , getThrowableCount , getThrowables , indexOfThrowable , indexOfThrowable , printPartialStackTrace , printStackTrace , printStackTrace , printStackTrace |
PropertyValueException
public PropertyValueException(String s,
String entityName,
String propertyName)
buildPropertyPath
public static String buildPropertyPath(String parent,
String child)
Return a well formed property path.
Basicaly, it will return parent.child
parent
- parent in pathchild
- child in path
getEntityName
public String getEntityName()
getMessage
public String getMessage()
Returns the detail message string of this throwable. If it was
created with a null message, returns the following:
( cause==null ? null : cause.toString( ).
- getMessage in interface Nestable
- getMessage in interface NestableRuntimeException
getPropertyName
public String getPropertyName()