Distinct JpaContainer

Hi,
I read that distinct isn’t supported by JpaContainer

But is there any workaround?
I’m using Hibernate and Mysql

Thanks