-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify semantics of BindableType #106
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
|
This seems like low-hanging fruit that could be looked at in the next release and resolved one way or the other? It does appear to be a fairly low priority either way. Reza Rahman Please note views expressed here are my own as an individual community member and do not reflect the views of my employer. |
So, okay, this was indeed very slightly ambiguous, though I note that Hibernate already fixed the indicated inconsistency, probably long ago. Anyway, I've "fixed" this issue in #468 by adding some |
BindableType has three values SINGULAR_ATTRIBUTE, PLURAL_ATTRIBUTE, ENTITY_TYPE.
For an entity like this:
The lookup of the bindable type for the manager property returns ENTITY_TYPE on Hibernate and SINGULAR_ATTRIBUTE on EclipseLink. I'd argue the latter is wrong as the existence of ENTITY_TYPE indicates that it should be preferred over SINGULAR_ATTRIBUTE if the attribute indeed is a JPA entity. The spec however is completely silent on this and doesn't define any strict rules.
The text was updated successfully, but these errors were encountered: