Hi,
I am using a HQL with getHibernateTemplate().find to get some values from two tables. The following is my code.
Code:
public List findValues(String username, String carmodel) {
return getHibernateTemplate().find("from profile p, car c where p.name='"+username+"' and c.model='"+carmodel+"' and c.user=p.user");
}
I am able to get the correct numbers of objects return. However, when I tried to get the string values inside the object, I got values like [Ljava.lang.Object;@1a2b5ca, [Ljava.lang.Object;@14ce4b0, [Ljava.lang.Object;@13a056f .. etc...
Is there a way to get the string value of my car and profile object?
Thanks.