• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the DirectPropertyAccessor mandatory?

 
Zee Ho
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all ranchers:
I am new to hibernate, and try to do my first OR mapping, I define the hbm.xml like this


But it does not work, the error message is Can not find the set method propery for property id.(I swear I really have one like void setId(Long id))

If I complete the access attribute of id element, like this

Everything works perfectly.(I did not change the source code)


So is the DirectPropertyAccessor mandatory for the id element? but from the example of some website, seems people did not use it. If it is not, what possibly is my probelm?
 
Mahesh Gurav
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please give .hbm.xml & also details of database you are using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic