How can i use this within a HQL ? Query query = session.createQuery(myhqlquery);??
If you want something you never had do something which you had never done
posted 8 years ago
session.load and HQL are two different ways of loading objects. If you have the primary key, use session.load() or session.get(), if you need to load one or more objects using parameters besides the primary key, use HQL or Criteria queries.