[
https://issues.apache.org/jira/browse/ISIS-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Keir Haywood updated ISIS-2820:
--------------------------------------
Description:
For entity, any `@Inject`ed fields should be marked as `@NonPersistent`
For jaxb view model, any `@Inject`ed fields should be marked as `@XmlTransient`
For serializable view model, any `@Inject`ed fields should be marked as
`transient` keyword.
JPA entity enums should be annotated with EnumType.STRING.
Entities should have protected no-arg constructors, to force use of factory
methods.
Finder methods in `Repository` should return either a `List<.>` or an
`Optional<.>`.
was:
For entity, any `@Inject`ed fields should be marked as `@NonPersistent`
For jaxb view model, any `@Inject`ed fields should be marked as `@XmlTransient`
For serializable view model, any `@Inject`ed fields should be marked as
`transient` keyword.
Entities should have protected no-arg constructors, to force use of factory
methods.
Finder methods in `Repository` should return either a `List<.>` or an
`Optional<.>`.
> Additional arch tests for entities etc.
> ---------------------------------------
>
> Key: ISIS-2820
> URL: https://issues.apache.org/jira/browse/ISIS-2820
> Project: Isis
> Issue Type: Improvement
> Components: Isis Testing
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Assignee: Daniel Keir Haywood
> Priority: Minor
> Fix For: 2.0.0-M6
>
>
> For entity, any `@Inject`ed fields should be marked as `@NonPersistent`
> For jaxb view model, any `@Inject`ed fields should be marked as
> `@XmlTransient`
> For serializable view model, any `@Inject`ed fields should be marked as
> `transient` keyword.
>
> JPA entity enums should be annotated with EnumType.STRING.
>
> Entities should have protected no-arg constructors, to force use of factory
> methods.
> Finder methods in `Repository` should return either a `List<.>` or an
> `Optional<.>`.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)