Hibernate Annotation Placement Question

后端 未结 5 1619
离开以前
离开以前 2020-12-01 00:41

I\'ve got what I think is a simple question. I\'ve seen examples both ways. The question is - \"why can\'t I place my annotations on the field?\". Let me give you an exam

5条回答
  •  猫巷女王i
    2020-12-01 00:58

    A long reach, but do you have an old *.hbm.xml file floating around?

    Perhaps it might be picking up the wrong setting for default-access and using property instead of field ?

提交回复
热议问题