Hibernate version: 3.2.2
Mapping documents:
Code:
<hibernate-mapping default-lazy="false">
<class name="it.inform.ob.bean.GuidaUnitaOrganizzativa" table="OBTD_GPR_UNITA_ORGANIZZATIVE">
<meta attribute="class-description">Guida processi - Unita organizzative</meta>
<composite-id name="id" class="it.inform.ob.bean.GuidaUnitaOrganizzativaPk">
<key-property name="cafmrcpss" column="cafmrcpss" type="string"/>
<key-property name="cafuog" column="cafuog" type="string"/>
</composite-id>
<many-to-one name="uog" insert="false" update="false" class="it.inform.ob.bean.UnitaOrganizzativa" entity-name="unitaorganizzativa">
<column name="cafuog" not-null="true" length="10"/>
</many-to-one>
<property name="stsval" type="string">
<column name="stsval" length="1" sql-type="string" not-null="true"/>
</property>
<set name="ruoli" order-by=" cafrulstd ASC" table="OBTD_GPR_RUOLI_STANDARD" lazy="true" cascade="all" inverse="true">
<key>
<column name="cafmrcpss"/>
<column name="cafuog"/>
</key>
<one-to-many class="it.inform.ob.bean.GuidaRuolo"/>
</set>
</class>
Code between sessionFactory.openSession() and session.close():session.createCriteria(GuidaUnitaOrganizzativa.class)
Full stack trace of any exception that occurs:no exception
Name and version of the database you are using:Oracle 9.02
The generated SQL (show_sql=true):Normal sql query like select * from OBTD_GPR_UNITA_ORGANIZZATIVE
The oracle table contains over 1800 records and when i try to execute the query via Hibernate it takes over 5 minutes to load the list of GuidaUnitaOrganizzativa objects.
Why is it so slow? I think 1800 records aren't so much.
(Of course i could use paginate solution but i want know why it is so slow)
Thanks
[/code]