[
https://issues.apache.org/jira/browse/CAUSEWAY-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Keir Haywood reassigned CAUSEWAY-2085:
---------------------------------------------
Assignee: Daniel Keir Haywood (was: Andi Huber)
Description:
So can be referenced in a view model.
Perhaps only enable this metamodel validation if a config property is enabled.
We have archunit rules for this ...
org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJpaRules#every_jpa_Entity_must_be_annotated_with_XmlJavaAdapter_of_PersistentEntityAdapter
org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules#every_jdo_PersistenceCapable_must_be_annotated_as_XmlJavaAdapter_PersistentEntityAdapter
was:
So can be referenced in a view model.
Perhaps only enable this metamodel validation if a config property is enabled.
Summary: [archunit rule] Every entity should be annotated with
@XmlJavaTypeAdapter(PersistentEntityAdapter.class) (was: [Validation] Every
entity should be annotated with
@XmlJavaTypeAdapter(PersistentEntityAdapter.class))
> [archunit rule] Every entity should be annotated with
> @XmlJavaTypeAdapter(PersistentEntityAdapter.class)
> --------------------------------------------------------------------------------------------------------
>
> Key: CAUSEWAY-2085
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-2085
> Project: Causeway
> Issue Type: New Feature
> Components: Applib (programming model)
> Affects Versions: 1.17.0
> Reporter: Daniel Keir Haywood
> Assignee: Daniel Keir Haywood
> Priority: Minor
> Fix For: 2.0.0-RC5
>
>
> So can be referenced in a view model.
> Perhaps only enable this metamodel validation if a config property is enabled.
>
> We have archunit rules for this ...
> org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJpaRules#every_jpa_Entity_must_be_annotated_with_XmlJavaAdapter_of_PersistentEntityAdapter
>
> org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules#every_jdo_PersistenceCapable_must_be_annotated_as_XmlJavaAdapter_PersistentEntityAdapter
--
This message was sent by Atlassian Jira
(v8.20.10#820010)