Author: simoneg
Date: Sun Jan 24 19:19:08 2010
New Revision: 902624

URL: http://svn.apache.org/viewvc?rev=902624&view=rev
Log:
Version should be read online

Modified:
    
labs/magma/trunk/database-jpa/src/main/java/org/apache/magma/database/openjpa/InstallVersionByDefault.aj

Modified: 
labs/magma/trunk/database-jpa/src/main/java/org/apache/magma/database/openjpa/InstallVersionByDefault.aj
URL: 
http://svn.apache.org/viewvc/labs/magma/trunk/database-jpa/src/main/java/org/apache/magma/database/openjpa/InstallVersionByDefault.aj?rev=902624&r1=902623&r2=902624&view=diff
==============================================================================
--- 
labs/magma/trunk/database-jpa/src/main/java/org/apache/magma/database/openjpa/InstallVersionByDefault.aj
 (original)
+++ 
labs/magma/trunk/database-jpa/src/main/java/org/apache/magma/database/openjpa/InstallVersionByDefault.aj
 Sun Jan 24 19:19:08 2010
@@ -20,6 +20,8 @@
 import javax.persistence.Version;
 import javax.persistence.Entity;
 
+import org.apache.magma.beans.MagReadOnly;
+
 /**
  * Provides by default a version field to those entities missing it.
  *
@@ -53,6 +55,7 @@
         * @return The version of the bean.
         */
        @Version
+       @MagReadOnly
        public long WithDefaultVersion.getVersion() {
                return version;
        }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to