Please someone respond....I wonder if it is the issue with the query "select distinct domainName from User"....Is this the way to write query in hibernate?
You might want to do two things.
1. Post if you are getting any exceptions.
2. Turn-on hibernate.show_sql=true in the configuration document and see what query it is running.
This will show you the SQL query which hibernate uses to fetch data.
If you are not laughing at yourself, then you just didn't get the joke.