[
https://issues.apache.org/jira/browse/ISIS-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367026#comment-17367026
]
ASF subversion and git services commented on ISIS-2742:
-------------------------------------------------------
Commit 69ed31855fec0752a4029aea2002e4803e28109b in isis's branch
refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=69ed318 ]
ISIS-2742: meta-annotation support for JdoVersionFacetFromAnnotation
> 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)