Description
for example, would like to be able to declare:
@Target(TYPE) @Retention(RUNTIME) @PersistenceCapable( identityType = IdentityType.DATASTORE) @DatastoreIdentity( strategy = IdGeneratorStrategy.NATIVE) @Version( strategy = VersionStrategy.VERSION_NUMBER) public @interface EntityWithIdAndVersion { @AliasFor( annotation = PersistenceCapable.class, attribute = "schema") String schema() default ""; @AliasFor( annotation = DatastoreIdentity.class, attribute = "column") String idColumn() default "id"; @AliasFor( annotation = Version.class, attribute = "column") String versionColumn() default "version"; }
and then:
@EntityWithIdAndVersion( schema = "ORGANISATION") public class Party {}
however, this results in:
"ObjectSpecification is missing an EntityFacet" exception.