-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Newbie: customisation of many to many join table
PostPosted: Fri Oct 02, 2009 11:59 am 
Newbie

Joined: Wed Sep 09, 2009 6:59 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.