程序包 org.hibernate
类 PropertyAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.PropertyAccessException
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
PropertySetterAccessException
public class PropertyAccessException extends HibernateException
A problem occurred accessing a property of an instance of a persistent class by reflection, or via enhanced entities. There are a number of possible underlying causes, including- failure of a security check
- an exception occurring inside the getter or setter method
- a nullable database column was mapped to a primitive-type property
- the Hibernate type was not castable to the property type (or vice-versa)
- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 PropertyAccessException(Throwable cause, String message, boolean wasSetter, Class persistentClass, String propertyName)Constructs a PropertyAccessException using the specified information.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetMessage()ClassgetPersistentClass()StringgetPropertyName()protected StringoriginalMessage()
-
-
-
构造器详细资料
-
PropertyAccessException
public PropertyAccessException(Throwable cause, String message, boolean wasSetter, Class persistentClass, String propertyName)
Constructs a PropertyAccessException using the specified information.- 参数:
cause- The underlying causemessage- A message explaining the exception conditionwasSetter- Was the attempting to access the setter the cause of the exception?persistentClass- The class which is supposed to contain the property in questionpropertyName- The name of the property.
-
-