0 Replies Latest reply on Jun 26, 2014 3:10 AM by Kamil Kłys

    [SOLVED] Order by @DiscriminatorColumn using AuditQuery

    Kamil Kłys Newbie


      Recentrly I needed to retrieve data from DB sorted by Discriminator Column and I'm stuck.

      Problem is, I haven't found any solution how to to this using AuditQuery.

      In simple HQL I could use (...) order by Entity.class, but how to do such thing in AQ?


      Here is the sample code of my entity class



      @Table(name = "something")







      public class Entity extends Something {




      I would be grateful for help




      Finally I found the solution. Looks like all you need to do is add order by "class", example