I should clarify... Yes Hibernate should use the type to decide which method to pick here. But.. the problem is that this is before Hibernate understands the type. In fact, much of its understanding of "the type" will come from its selection of the method/field here.
I think there is really nothing to do from the Hibernate side here. You could either: 1) Rename the "other" getter method 2) Use field access, at least for this attribute 3) Use annotations
|