Hi, I have a very annoying issue, I have a simple catalog, and I want to get all the values for that catalog, but I am getting the same record over and over, for instance, I have 4 values in the catalog, and I am getting the same value 4 times. I am using the latest versions of hibernate and spring. This is used in an application in swing connecting via spring to an oracle application server.
Here are my mappings
Code:
<hibernate-mapping>
<class name="Listavalores" table="listavalores">
<id name="idlistavalores" type="int">
<column name="idlistavalores" />
<generator class="increment" />
</id>
<property name="secuencia" type="java.lang.Short">
<column name="secuencia" />
</property>
<property name="desclistavalores" type="string">
<column name="desclistavalores" length="200" not-null="true" />
</property>
<property name="estatuslistavalores" type="java.lang.Short">
<column name="estatuslistavalores" />
</property>
</class>
</hibernate-mapping>
and currently I just want to have a select all query and I am using this:
Code:
List result = getHibernateTemplate().find("from Listavalores");
I would really appreciate any help, I am already frustrated with this issue, and I still haven't been even near to a solution.
thanks alot