Hello
On Hibernate 2.1.6, without any association (no foreign keys) between classes myFoo & myBar hbm.xml files, using a request like :
getHibernateTemplate().find("from myFoo foo, myBar bar WHERE bar.userId = foo.userId);
Is it possible to retrieve a Hibernate bean properties when these properties come from this cross-select query, possibly using a JXTemplate mechanism or 'pure' Java ?
For example, if the bean is "b", and foo has fields a,b,c and bar has fields d,e,f, I would like to access b.a or b.f, but I'm getting a "java.lang.NumberFormatException" exception whenever I try to access these.
Thanks for any input.
|