Skip to content

@OrderBy on a @OneToMany property is not used when lazy loading  #154

@rbygrave

Description

@rbygrave

e.g. On the Order bean:

@OneToMany(cascade=CascadeType.ALL, mappedBy="order")
@OrderBy("id asc, orderQty asc, cretime desc")
List<OrderDetail> details;

The order by is being ignored when the details are lazy loaded

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions