[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4689?page=c...
]
Emmanuel Bernard commented on HHH-4689:
---------------------------------------
hum no you can't do that.
I looked at the code a bit, it seems that your algo is indeed part of the
findPropertyByName algo
**
StringTokenizer st = new StringTokenizer( propertyName, ".", false );
while ( st.hasMoreElements() ) {
String element = (String) st.nextElement();
if ( property == null ) {
property = associatedClass.getProperty( element );
}
else {
if ( !property.isComposite() ) return null;
property = ( (Component) property.getValue() ).getProperty( element );
}
}
**
so extract this method from findPropertyByName, host it on BinderHelper and use it for
your case.
Make sure @OrderBy supports dotted notation to point to embedded
properties
---------------------------------------------------------------------------
Key: HHH-4689
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4689
Project: Hibernate Core
Issue Type: Sub-task
Components: annotations
Reporter: Emmanuel Bernard
Assignee: Scott Marlow
Attachments: CollectionBinder.patch
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira