Hello there!
I need to do a count using multiple columns but I get the following error:
expecting CLOSE, found '('
I searched a lot about this issue and my conclusion is that hibernate does not support count(distinct t.col, t.col2) or something like that. The table I want to do this count has a composite id and once this is a very basic functionality (I can do it in native SQL with no dificulty) I belive it must be a way to do that.
My last try was:
select count(distinct acr.id.numeroSinistro, acr.id.numeroAcordo) from AcordoORM as acr
then i got
select count( acordoorm0_.SINNUM, acordoorm0_.rscacrnum ) from mfrmacr acordoorm0_
but my oracle database does not run that query....
anyone has any idea on how to do this?
regards
|