[
https://issues.apache.org/jira/browse/ISIS-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367167#comment-17367167
]
ASF subversion and git services commented on ISIS-2742:
-------------------------------------------------------
Commit c7e06ac01bd24906cc5d1c0089f7c4e3e4de7859 in isis's branch
refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=c7e06ac ]
ISIS-2742: more meta-annotations tests
> 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
> Assignee: Andi Huber
> Priority: Minor
> 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)