[jboss-user] [JBoss Seam] - Re: Security: access control at entity level?

a.simonov do-not-reply at jboss.com
Mon Jun 4 08:13:45 EDT 2007


if for example want to define filter  like this

@org.hibernate.annotations.FilterDef(
name = "accessLevelFilter2",
        parameters = {@org.hibernate.annotations.ParamDef(name = "currentAccessLevel", type="integer")}
)
@org.hibernate.annotations.Filter(
name = "accessLevelFilter2",
        condition = "(select level from registration where id=this.id)=:currentAccessLevel"
        )

this should reference to the entity.I couldn't get it to work.. how this could be done?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050909#4050909

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050909



More information about the jboss-user mailing list