Bug 89 : @OrderBy not used for lazy loading query
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
1.1.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
19/03/2009
Updated 
19/03/2009
Type 
Bug
 
Attachments 
No attachments

When you put an @OrderBy on a @OneToMany ... like

@OneToMany(cascade=CascadeType.ALL)
@OrderBy("qty desc")
List details;

The order by clause is not being used during a lazy load query.

Note that the order by was being used when you fetch the master and join the details in a single query.

 
Rob 19 Mar 07:48
Fixed in HEAD

Fixed in HEAD.

Fix in BeanPropertyAssocMany.

woResponse

Upload a file