org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com

来源:互联网 发布:阿里云解析一定要买吗 编辑:程序博客网 时间:2024/06/08 05:55

org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.yuxuan.model.Application.applicationInfo

找到

com.yuxuan.model.Application类中的applicationInfo属性,看看和hbm.xml配置是否一致

我写的

List<ApplicationInfo> applicationInfo

而配置是

<set name="applicationInfo">
    <key column="applicationId"/>
        <one-to-many class="ApplicationInfo"/>
    </set>

所以错误

原创粉丝点击