📄 propertyvalueexception.java
字号:
//$Id: PropertyValueException.java,v 1.1.2.1 2003/11/27 13:24:16 oneovthafew Exp $package net.sf.hibernate;import net.sf.hibernate.util.StringHelper;/** * Thrown when the (illegal) value of a property can not be persisted. * There are two main causes: * <ul> * <li>a property declared <tt>not-null="true"</tt> is null * <li>an association references an unsaved transient instance * </ul> * @author Gavin King */public class PropertyValueException extends HibernateException { private final Class persistentClass; private final String propertyName; public PropertyValueException(String s, Class persistentClass, String propertyName) { super(s); this.persistentClass = persistentClass; this.propertyName = propertyName; } public Class getPersistentClass() { return persistentClass; } public String getPropertyName() { return propertyName; } public String getMessage() { return super.getMessage() + StringHelper.qualify( persistentClass.getName(), propertyName ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -