A mistyped strategy would result in an error during enhancement or deployment so it's not silent, just delayed.
Anyone else have an opinion? Craig On Aug 9, 2007, at 9:54 AM, Matthew T. Adams wrote:
+1 -----Original Message----- From: Andy Jefferson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 9:47 AM To: [email protected]; JDO Expert Group Subject: Annotation enum : IdGeneratorStrategy JDO2 defines particular id generationstrategies ... "identity", "increment", "sequence", "uuid-string", "uuid-hex", "native".Obviously implementations can define their own add-on strategies. In XML we have free-form text and so people can just type<field value-strategy="auid"> and rely on the implementation providing onecalled "auid". In Annotations they currently can't do this since it uses an enum. Two possible options 1. Remove IdGeneratorStrategy enum and just let people type inthe "valueStrategy" name (and @DatastoreIdentity "strategy"), so they canaccess implementations own variants too.2. Make implementations use the @Extension to access these vendor add-onstrategies and use IdGeneratorStrategy.UNKNOWN (which is in the enum currently)I'm swaying towards 1 since its more consistent with XML specification. Anyopinions ? -- Andy (Java Persistent Objects - http://www.jpox.org)
Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
smime.p7s
Description: S/MIME cryptographic signature
