[ 
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)

Reply via email to