updated coding rules.
[utils] / support / general / src / main / java / org / wamblee / persistence / AbstractPersistent.java
index 4eee3a0278d4eb5c0a3adf9d074b1e434c34738d..c4b63c3f3ae42a15cbb217264b0e4efc7d3439fa 100644 (file)
@@ -28,20 +28,20 @@ public abstract class AbstractPersistent implements Persistent {
     /**
      * Primary key. 
      */
-    private Serializable _primaryKey; 
+    private Serializable primaryKey; 
     
     /**
      * Version. 
      */
-    private int _version; 
+    private int version; 
     
     /**
      * Constructs the object. 
      *
      */
     protected AbstractPersistent() { 
-        _primaryKey = null; 
-        _version = -1; 
+        primaryKey = null; 
+        version = -1; 
     }
     
     /**
@@ -49,35 +49,35 @@ public abstract class AbstractPersistent implements Persistent {
      * @param aPersistent Object to copy. 
      */
     protected AbstractPersistent(AbstractPersistent aPersistent) {
-        _primaryKey = aPersistent._primaryKey; 
-        _version = aPersistent._version; 
+        primaryKey = aPersistent.primaryKey; 
+        version = aPersistent.version; 
     }
 
     /* (non-Javadoc)
      * @see org.wamblee.persistence.Persistent#getPrimaryKey()
      */
     public Serializable getPrimaryKey() {
-        return _primaryKey; 
+        return primaryKey; 
     }
     
     /* (non-Javadoc)
      * @see org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
      */
     public void setPrimaryKey(Serializable aKey) {
-        _primaryKey = aKey; 
+        primaryKey = aKey; 
     }
     
     /* (non-Javadoc)
      * @see org.wamblee.persistence.Persistent#getPersistedVersion()
      */
     public int getPersistedVersion() {
-        return _version; 
+        return version; 
     }
     
     /* (non-Javadoc)
      * @see org.wamblee.persistence.Persistent#setPersistedVersion(int)
      */
     public void setPersistedVersion(int aVersion) {
-        _version = aVersion;
+        version = aVersion;
     }
 }