You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HJ3 adds @Transient as it assumes that the type of the property is not known to JPA. HJ3 can't also possibly know about all the types which are mappable with Hibernate. It also can't reason about annotations you add via Annox.
So, in core, @Transient isn't wrong here.
I see two ways to solve this:
Add a HJ3 feature to turn off @Transient for such cases.
Add a jaxb2-annotate-plugin feature to be able to remove a certain annotation.
I'd prefer the second option. It may feel a bit hacky, but it's not wrong in the scope of jaxb2-annotate-plugin and will produce expected results.
Firstly thank you for your hard work! :)
I want to map Joda Time classes (LocalDate, LocalDateTime etc.) to DB so I configured globalBindings:
I've also annotated fields with Hibernate Type annotation like:
Result is:
As you can see @transient is undesirable here. I've found similar bug for previous Hyperjaxb realeases: http://jira.highsource.org/browse/HJIII-97 but it's still unresolved.
The text was updated successfully, but these errors were encountered: