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.