hardy.ferentschik wrote:
Hi,
I've actually never heard of Hibernate Synchronizer before, but it seems this eclipse plugin has its own mailing list. Have you tried asking your question there?
As far as I understand Hibernate Synchronizer auto-generates some code for you. Are you asking how to modify these generated code or do you actually write your own HQL queries? In the latter case maybe ResultTransformers could help.
--Hardy
forget about Hibernate synchronizer, it just generates POJO classes, nothing more.
Anyway I found an answer,but I feel there is beter solution than this, wherever you create an HQL query,just say :
session.createQuery("Select new XCar(c) from Car c where ...")