Unfortunately I'm not authorized to show any code. Also I'm sorry if I'm not giving enough info, this is my first time asking a question on this website. Please let me know if there's more you need to know.
I have a CriteriaBuilder query that sorts via Pageable. The sorting method as of right now sorts by entities' properties, however I want to sort by a field generated by a LISTAGG but every time I try to pass "col_12_0_" hibernate sees the underscore and only takes "col" as a value... How can I solve this?
I've tried using the .alias() method to generate the alias I want in the query but it seems like it's not working as CB always generates aliases such as "col_1_0_".
I've also tried setting the generation strategy as PhysicalNamingStrategyStandardImpl but nothing changes.