-->
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: Mapping Help
PostPosted: Fri Oct 08, 2004 11:49 am 
Newbie

Joined: Tue Apr 06, 2004 9:15 am
Posts: 4
Hi all,

I have a database with following model ( I had simplified to my question only):

Table: Contacts ( simply contacts )
id (pk)
Name
...
readID (fk on ACL(id))
writeID (fk on ACL(id))
userID (fk on USERS(id))


Table: ACL ( Access Control List (ACL) Permission )
permID (fk on Perms(id))
userID (fk on Users(id))
groupID (fk on Groups(id))

Table: Users ( users table )
userID (pk)
name
...

Table: Groups ( users group )
groupID (PK)
name
...

Table: UsersGroups
userID (fk on Users(id))
groupID (fk on Groups(id))
...


Table: CTGroups ( Contacts Group )
groupID (pk)
...

Table: CNTGroups ( contacts on groups )
contactID (fk on Contacts(ID))
groupID (fk on CTGroup(CTGroup))


My questions:

1) It's possible to use hibernate with this database model ? Or better, it's hibernate a good framework
for this model ?

2) How can I map hibernate if I pretend to obtain things like:
* All contacts that user XPTO could read (readID)
* All contacts in group employee, that user XPTO have read or write access
3) where can I get good examples ?


Notes: I have read Hibernate in Action, but I don't know why didn't refer to permission system,
because for me it's a usual to use.


Thanks,
Paulo


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.