Daniel Keir Haywood created ISIS-2742:
-----------------------------------------

             Summary: Allow meta-annotations to be declared for entities.
                 Key: ISIS-2742
                 URL: https://issues.apache.org/jira/browse/ISIS-2742
             Project: Isis
          Issue Type: Improvement
          Components: Isis Core
    Affects Versions: 2.0.0-M5
            Reporter: Daniel Keir Haywood
             Fix For: 2.0.0-M6


for example, would like to be able to declare:
{code:java}
@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";

} {code}
and then:
{code:java}
 @EntityWithIdAndVersion( schema = "ORGANISATION")
public class Party {}{code}
however, this results in:

"ObjectSpecification is missing an EntityFacet" exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to