public class

PropertyValueException

extends HibernateException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.hibernate.HibernateException
           ↳ org.hibernate.PropertyValueException

Class Overview

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

Summary

Public Constructors
PropertyValueException(String s, String entityName, String propertyName)
Public Methods
static String buildPropertyPath(String parent, String child)
Return a well formed property path.
String getEntityName()
String getMessage()
String getPropertyName()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public PropertyValueException (String s, String entityName, String propertyName)

Public Methods

public static String buildPropertyPath (String parent, String child)

Return a well formed property path. Basicaly, it will return parent.child

Parameters
parent parent in path
child child in path
Returns
  • parent-child path

public String getEntityName ()

public String getMessage ()

public String getPropertyName ()