This is an example of a mapping file:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping auto-import="false" default-lazy="true">
<class name="Dispo.Hibernate.Dispo.Disposition"
table="Disposition">
<id name="Oid" type="long"/>
<property name="Schreibzaehler" type="long"/>
<property name="IstGeloescht" type="boolean"/>
<property name="Valutatag" type="long">
<column name="Valutatag" index="Disposition_Valutatag"/>
</property>
<property name="Handelstag" type="long">
<column name="Handelstag" index="Disposition_Handelstag"/>
</property>
<property name="Waehrungskurs" type="string"/>
<property name="Bemerkung" type="string"/>
<property name="UmrechnungIstBetragNachGegenbetrag" type="boolean">
<column name="Umrechnung"/>
</property>
<property name="BetragIstHaben" type="boolean"/>
<property name="GegenbetragIstHaben" type="boolean"/>
<property name="EingangBetrag" type="integer"/>
<property name="EingangGegenbetrag" type="integer"/>
<property name="Referenz" type="string">
<column name="Referenz" index="Disposition_Referenz"/>
</property>
<property name="Referenz2" type="string">
<column name="Referenz2" index="Disposition_Referenz2"/>
</property>
<property name="ZurZahlungVorgemerkt" type="boolean"/>
<property name="CLSStatus" type="integer"/>
<property name="DerBetrag" type="string"/>
<many-to-one name="dieWaehrung" column="DispositionWaehrung" lazy="true" index="IndexDispositionWaehrung"
class="Dispo.Hibernate.Stamm.Waehrung"/>
<property name="DerGegenbetrag" type="string"/>
<many-to-one name="dieGegenwaehrung" column="DispositionGegenwaehrung" lazy="true" outer-join="false" index="IndexDispoGegenwaehrung"
class="Dispo.Hibernate.Stamm.Waehrung"/>
<!-- many-to-one-Assoziation Disposition.dasBuchungskontoWaehrung <-> Buchungskonto.dieDispositionenWaehrung -->
<many-to-one name="dasBuchungskontoWaehrung" column="BuchkontoDispoWaehrung"
lazy="true" outer-join="false" index="IndexBuchkontoDispoWaehrung"
class="Dispo.Hibernate.Stamm.Buchungskonto"/>
<!-- many-to-one-Assoziation Disposition.dasBuchungskontoGegenwaehrung <-> Buchungskonto.dieDispositionenGegenwaehrung -->
<many-to-one name="dasBuchungskontoGegenwaehrung" column="BuchkontoDispGegenwaehrung"
lazy="true" outer-join="false" index="IndBuchkontoDispoGegenwaehrung"
class="Dispo.Hibernate.Stamm.Buchungskonto"/>
<!-- many-to-one-Assoziation Disposition.dieDispoart <-> Dispoart.dispositionen -->
<many-to-one name="dieDispoart" column="DispositionDispoart" lazy="true" outer-join="false" index="IndexDispoDispoart"
class="Dispo.Hibernate.Dispo.Dispoart"/>
<!-- many-to-one-Assoziation Disposition.dasHandelsportfolio <-> Handelsportfolio.dispositionen -->
<many-to-one name="dasHandelsportfolio" column="DispositionHandelsportfolio" lazy="true" outer-join="false" index="IndexDispoHandelsportf"
class="Dispo.Hibernate.Stamm.Handelsportfolio"/>
</class>
</hibernate-mapping>
Is there something that is obviously wrong?
Whatsoever, I do not understand why this "lazy" flag is inverted in the
code.
There is another post which seems to deal with a similar problem:
http://forum.hibernate.org/viewtopic.ph ... racle+lazy
Thanks in advance,
Erik Heckert