0 Replies Latest reply on Apr 25, 2010 7:13 PM by Walter White

    Security - PermissionTarget

    Walter White Novice

      Hi all,

      I am using Seam Security and have an AbstractPermission superclass with both the PermissionAction and PermissionTarget annotations on properties there.  Seam does not pick up the annotations on the superclass.  I would like to keep my entities the way they are - Is this a design problem with Seam, or should I conform to that design pattern?

      public abstract class AbstractPermission extends AbstractEntity
              @Column(nullable = false, updatable = false)
              protected String target;
              @Column(nullable = false, updatable = false)
              protected String action;

      @Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
      public class RolePermission extends AbstractPermission
              private static final long serialVersionUID = 1L;
              @ManyToOne(optional = false)
              @JoinColumn(nullable = false)
              protected Role role;