Hi ,I am a newer in hibernate forum,this is my first post.
what I confused is How can I get the "metadata" or column name where I use hql.
for example:
Quote:
QueryImpl query= (QueryImpl)session.createQuery("select mycolumn from myclass where cate=:cate");
query.getNamedParameters();// this method can get the parameters
query.getReturnAliases();//interesting! I can get the column aliases
query.getReturnTypes();// I can get the return types no matter my own class or java class
//but how can I get the table,columns or classes.fileds in my query??