2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

PropertyAccessException

 

I have a parent table (USERS) and associated child table (GROUP) mapped with ManyToMany relation .

user_id is the identity column in the USERS table and grp_id is the identity key in the GROUP table. USER_GROUP_REL table is the join table that holds the relation between the two. When I persist a new User instance, it works as expected (by inserting a record into the parent table as well as the child table). However, when I try updating any values to the User instance, PropertyAccessException is thrown.

can anyone help me out?

userimage
Make sure groups list doesn't contain objects other than Groups - it seems to be the most obvious cause
Answer is