Hi, I have a basic question about Hibernate many to many mappings. I have a user table and a access_rights table. There is a many to many mapping between then and the join table for this mapping is user_access_rights. I would like to record when an access right is added for a user. The obvious place to put this is the user_access_rights table since this stores all the mappings. However, if this table is automatically managed by Hibernate, how can I set this extra field up in the join table and how can I access it. Do I need to use hql or sql for this or is there a better way?
Regards, Jonathan
|