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 2022/04/29 14:35:00 UTC

[jira] [Commented] (ISIS-2085) [Validation] Every entity should be annotated with @XmlJavaTypeAdapter(PersistentEntityAdapter.class)

    [ https://issues.apache.org/jira/browse/ISIS-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530025#comment-17530025 ] 

Andi Huber commented on ISIS-2085:
----------------------------------

A probably even better solution is to inspect all JAXB viewmodels and collect all the types they reference. Then validate that either the referencing member or the referenced entity have the appropriate annotation. No configuration required.

> [Validation] Every entity should be annotated with @XmlJavaTypeAdapter(PersistentEntityAdapter.class)
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-2085
>                 URL: https://issues.apache.org/jira/browse/ISIS-2085
>             Project: Isis
>          Issue Type: New Feature
>          Components: Isis Applib (programming model)
>    Affects Versions: 1.17.0
>            Reporter: Daniel Keir Haywood
>            Priority: Minor
>
> So can be referenced in a view model.
> Perhaps only enable this metamodel validation if a config property is enabled.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)