Hibernate Discriminator sort
Posted
by mrvreddy
on Stack Overflow
See other posts from Stack Overflow
or by mrvreddy
Published on 2010-06-10T23:53:28Z
Indexed on
2010/06/11
1:02 UTC
Read the original article
Hit count: 286
I am trying to sort the records when queried on discriminator column.
I am doing a HQL/ Criteria query for retrieving all the records.
Here is my class:
abstract class A {
...
}
@DiscriminatorValue("B")
class B extends A {
}
@DiscriminatorValue("C")
class C extends A {
}
When I return the records, I want it sorted on the discriminator value.
© Stack Overflow or respective owner