Dear All,
For my project, I need to determine the fully-qualified name of a class in my model (eg. com.foo.Bar) purely from its un-qualified name (eg. Bar).
Clearly, HQL does this all the time because you can write...
Code:
select from Bar
...and it knows that maps to com.foo.Bar. And, indeed this information is all there in the .hbm files.
So my question is, how can I extract it myself? I've been digging around from Session->SessionFactory and looking at the ClassMetadata, but everything in there is already fully-qualified?
So how does the unqualified->qualified mapping in HQL work?
Regards,
Richard.