@OrderBy on @ElementCollection of basic type should "order by value"
--------------------------------------------------------------------
Key: HHH-6875
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6875
Project: Hibernate Core
Issue Type: Improvement
Affects Versions: 4.0.0.CR7
Reporter: Christian Bauer
Priority: Minor
JPA 2.0 spec says:
"The OrderBy annotation may be applied to an element collection. When OrderBy is
applied to an element collection of basic type, the ordering will be by value of the basic
objects and the property_or_field_name is not used."
Hibernate currently ignores @OrderBy on @ElementCollection on e.g. List<String>. The
order of elements is as returned by the database, undefined. The question is what "by
value of the basic objects" means. In-memory String comparison, etc.?
If it turns out "by value" means "whatever is returned by the
database", this issue can be closed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira