I have a class say: \"ClassA\" which has a collection of \"ClassB\"
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = \"COLUMN
It's unfortunately impossible to do what you want. I've answered a similar question here.
@OrderBy only supports direct properties of the collection elements.
@OrderBy