I'm facing a little problem with Hibernate.
I have a class:
public class Clazz{
private int idClazz;
//getters & setters...
}
It is correctly mapped within Hibernate. I want to select all the lines of this class in the database, but I want the idClazz field to be 100 * the ID in the databse.
So I make a small HQL query:
daoObject.createQuery("select 100*idClazz as idClazz from Clazz");
When I print the list of objects from this query, I still get the "normal" IDs. What I am doing wrong?
Thanks for your help!
(ps: of course this is an simplified situation, I don't exactly want to do this)