Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.PropertyAccessException

 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all am using a many to many relationship and when I try to save the object , it shows the exception..

my mapping file is :::
course bean is :::


please please, am changing by googling but still getting the exception.. please help me ...
 
Waswani Naresh
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide your POJO classes as well.

Regards,
Naresh Waswani
 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh ! I posted mapping file again instead of pojo ..
Course pojo ::
 
Waswani Naresh
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide RegisterStudent POJO and the code for inserting the object as well.

Regards,
Naresh Waswani
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you also provide complete stack trace.

Interesting thing is that for the courseID field you have specified access="field" in your mapping file, still Hibernate is trying to use getter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic