PropertyValueExceptionpublic class PropertyValueException extends HibernateException 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
|
Fields Summary |
---|
private final String | entityName | private final String | propertyName |
Constructors Summary |
---|
public PropertyValueException(String s, String entityName, String propertyName)
super(s);
this.entityName = entityName;
this.propertyName = propertyName;
|
Methods Summary |
---|
public static java.lang.String | buildPropertyPath(java.lang.String parent, java.lang.String child)Return a well formed property path.
Basicaly, it will return parent.child
return new StringBuffer(parent).append('.").append(child).toString();
| public java.lang.String | getEntityName()
return entityName;
| public java.lang.String | getMessage()
return super.getMessage() + ": " +
StringHelper.qualify(entityName, propertyName);
| public java.lang.String | getPropertyName()
return propertyName;
|
|