(no commit message)
[utils] / security / impl / src / main / java / org / wamblee / security / authorization / AbstractAuthorizationRule.java
index 69d51b9ff28d728128dc544446b28f98a6bcce28..828a89151e51c9e41185261f9ab8f575b87fd6e9 100644 (file)
@@ -25,8 +25,6 @@ import javax.persistence.InheritanceType;
 import javax.persistence.Table;
 import javax.persistence.Version;
 
-import org.wamblee.security.authentication.User;
-
 /**
  * Represents an authorization rule to determine whether an operation is allowed
  * on a resource.
@@ -41,7 +39,7 @@ public abstract class AbstractAuthorizationRule implements AuthorizationRule {
     
     @Id
     @GeneratedValue(strategy = GenerationType.AUTO)
-    private Long primaryKey;
+    private Long id;
 
     @Version
     private int version;
@@ -51,7 +49,7 @@ public abstract class AbstractAuthorizationRule implements AuthorizationRule {
     }
     
     public AbstractAuthorizationRule(AbstractAuthorizationRule aRule) { 
-        primaryKey = aRule.primaryKey;
+        id = aRule.id;
         version = aRule.version;
     }
 }