I need the ability to populate the audit fields of a join table that is used for a many to many relationship between Roles and Permissions. For Role and Permission domain object, I simply followed the AuditInterceptor code that is floating around, and that works great. However, I need to be able to track when a certain Permission was associated to a Role.
role -|--|< role_permission >|--|- permission
I need the audit fields populated on 'role_permission', but I don't have (or want for that matter) a domain object to satisfy the requirements of auditing.
Is there a best practice for this problem? I found one posting on this forum that look promising, but it didn't end with a solution:
http://forum.hibernate.org/viewtopic.ph ... manytomany
Any help or direction is greatly appreciated.
Thanks!
BCOT.
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: