thanks Jeroen.

slight typo ... "myIncludedProperty" is listed twice.

D

On Fri, 20 Oct 2017 at 12:22 Jeroen van der Wal <[email protected]> wrote:

> This is how I use it:
>
> @DomainObject(nature = Nature.VIEW_MODEL, objectType = "MyJaxbViewModel")
> @XmlRootElement(name = "myJaxbViewModel")
> @XmlType(
>         propOrder = {
>             "myIncludedProperty"
>         }
> )
> @XmlAccessorType(XmlAccessType.FIELD)
> public class MyJaxbViewModel {
>
>     @Getter @Setter @Nullable
>     private String myIncludedProperty;
>
>     @Getter @Setter @Nullable
>     private String myIncludedProperty;
>
>     @XmlTransient
>     private String myExcludedProperty;
>
> }
>
> HTH
>
>
> On 20 October 2017 at 12:28, Patrick Pliessnig <[email protected]>
> wrote:
>
> > Hi
> >
> > Modeling a JAXB view model with @XmlRootElement and its nature with
> > @DomainObject( nature = ... ) does not pass metamodel validation.
> >
> > Is there way to indicate the nature of a JAXB view model?
> > Eg. whether it belongs to the domain model or the application layer.
> >
> > thx
> > Patrick
> >
>

Reply via email to