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?
@Embeddable
@MappedSuperclass
public abstract class AbstractPermission extends AbstractEntity
{
@PermissionAction
@Column(nullable = false, updatable = false)
protected String target;
@PermissionTarget
@Column(nullable = false, updatable = false)
protected String action;
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
@Entity
public class RolePermission extends AbstractPermission
{
private static final long serialVersionUID = 1L;
@PermissionRole
@ManyToOne(optional = false)
@JoinColumn(nullable = false)
protected Role role;
Walter