|
Emmanuel Bernard Sorry, but I just do not understand the "design" of HCANN, so stumbling a bit to add this.
Adding @Transient will not work. The reason being that HCANN does not ever check annotations. In fact, it does not even depend on the JPA artifact. So even adding @Transient to one of the methods, HCANN happily continues to return 2 XProperty references.
I see 2 possible solutions. But you know HCANN better than I do, so I'd like to get your thoughts on these are other alternatives..
-
Add JPA as a dependency and look for @Transient.
-
Currently HCANN does have a notion of "filtering" a field or method based on org.hibernate.annotations.common.reflection.Filter. But that is extremely limited. It simply allows the caller to say whether to ignore static field/methods or transient fields (not @Transient!). We could open this up to allow a Filter to inspect the Method/Field (to look for annotations, etc). Does not fit well with XML weaving though.
|