[jboss-dev-forums] [Security Development] New message: "ACL Implementation Questions"

ANIL SALDHANA do-not-reply at jboss.com
Tue Feb 9 15:29:16 EST 2010


JBoss development,

A new message was posted in the thread "ACL Implementation Questions":

http://community.jboss.org/message/525225#525225

Author  : ANIL SALDHANA
Profile : http://community.jboss.org/people/anil.saldhana@jboss.com

Message:
--------------------------------------------------------------
Stefan,  when you look at the following class:
package org.jboss.security.acl.ACLImpl
 
we have
import javax.persistence.OneToMany;
import org.hibernate.annotations.Cascade;
 
   @OneToMany(mappedBy = "acl", fetch = FetchType.EAGER, cascade =
   {CascadeType.REMOVE, CascadeType.PERSIST})
   @Cascade(
   {org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
   private Collection<ACLEntryImpl> entries;

 
We have two annotations on the collection of acl entries. One is a JPA annotation and the other is an Hibernate specific annotation.
 
The question I have is the hibernate annotation a necessity? If not, we just have a JPA dependence on the ACL implementation.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/525225#525225




More information about the jboss-dev-forums mailing list