Hi all,
I have the following code:
public List<PropAtt> getAllPropositionAttributes() throws HibernateException { List< PropAtt> result = null; Query query = getSession().createQuery("from PropAtt propAttribute"); result = (List< PropAtt >) query.list(); } result object is a list of records, but all the record are the same. For example result[0] = 200;Color;Red (are internally to PropAtt object) result[0] = 200;Color;Red (are internally to PropAtt object) result[0] = 200;Color;Red (are internally to PropAtt object)
The Select generated show the following: 200 color blue 200 size big 200 height 11
Can you help me?
Thanks Danilo
|