Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2085

[archunit rule] Every entity should be annotated with @XmlJavaTypeAdapter(PersistentEntityAdapter.class)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.17.0
    • 2.0.0
    • None

    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

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: