Hello,
I am not quite a newbie, but the question sounds like it!
When querying, is there a way to use the class name only, rather than the fully qualified package name + class to reference an object? I would assume so since the Cat example in the documentation use:
Code:
List cats = sess.find(
"from Cat as cat where cat.birthdate = ?",
date,
Hibernate.DATE
);
instead of
Code:
List cats = sess.find(
"from net.sf.hibernate.examples.quickstart.Cat as cat where cat.birthdate = ?",
date,
Hibernate.DATE
);
since the Cat is in net.sf.hibernate.examples.quickstart package