You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2021/07/02 08:15:00 UTC
[jira] [Closed] (ISIS-2742) Allow meta-annotations to be declared
for entities.
[ https://issues.apache.org/jira/browse/ISIS-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber closed ISIS-2742.
----------------------------
> 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)