import javax.persistence.Table;
import javax.persistence.Version;
-import org.wamblee.usermgt.User;
-
/**
* Represents an authorization rule to determine whether an operation is allowed
* on a resource.
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
- private Long primaryKey;
+ private Long id;
@Version
private int version;
}
public AbstractAuthorizationRule(AbstractAuthorizationRule aRule) {
- primaryKey = aRule.primaryKey;
+ id = aRule.id;
version = aRule.version;
}
}