db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r737702 - /db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java
Date Mon, 26 Jan 2009 14:28:05 GMT
Author: andyj
Date: Mon Jan 26 14:28:04 2009
New Revision: 737702

URL: http://svn.apache.org/viewvc?rev=737702&view=rev
Log:
JDO-615 Fix getValueStrategy/setValueStrategy to use IdGeneratorStrategy enum instead of String
- to match annotations and DatastoreIdentityMetadata

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java?rev=737702&r1=737701&r2=737702&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/metadata/MemberMetadata.java Mon Jan 26 14:28:04
2009
@@ -17,6 +17,7 @@
 package javax.jdo.metadata;
 
 import javax.jdo.annotations.ForeignKeyAction;
+import javax.jdo.annotations.IdGeneratorStrategy;
 import javax.jdo.annotations.NullValue;
 import javax.jdo.annotations.PersistenceModifier;
 
@@ -269,14 +270,14 @@
      * 
      * @param str Value strategy
      */
-    MemberMetadata setValueStrategy(String str);
+    MemberMetadata setValueStrategy(IdGeneratorStrategy str);
 
     /**
      * Accessor for the value strategy
      * 
      * @return Value strategy
      */
-    String getValueStrategy();
+    IdGeneratorStrategy getValueStrategy();
 
     /**
      * Method to set the custom identity generation strategy.



Mime
View raw message