Hibernate unable to instantiate default tuplizer - cannot find getter

后端 未结 7 661
醉梦人生
醉梦人生 2021-01-01 17:41

I\'m trying to use Hibernate to persist a class that looks like this:

public class Item implements Serializable, Comparable {

// Item id
private         


        
7条回答
  •  没有蜡笔的小新
    2021-01-01 18:16

    Pay attention to method name,It is case sensitive!

    In my case,it could not recognize getter very well; my property name was uId and I used getUId name for getter name and when I changed it to getuId problem solved!

提交回复
热议问题