Skip to content

Commit

Permalink
Merge pull request #88 from CarstenHollmann/fix/set_offering_fetch_la…
Browse files Browse the repository at this point in the history
…zy_in_observation_mapping

Set offering fetch to lazy=true in observation mappings.
  • Loading branch information
CarstenHollmann committed Aug 11, 2014
2 parents c710a08 + c1f4d6e commit 67475c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<many-to-one name="unit" class="org.n52.sos.ds.hibernate.entities.Unit" fetch="select" lazy="no-proxy" foreign-key="observationUnitFk">
<column name="unitId" not-null="false" />
</many-to-one>
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="false" >
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="true" >
<key>
<column name="observationId" not-null="true" index="obshasoffobservationidx" />
</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<many-to-one name="unit" class="org.n52.sos.ds.hibernate.entities.Unit" fetch="select" lazy="no-proxy" foreign-key="observationUnitFk">
<column name="unitId" not-null="false" />
</many-to-one>
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="false">
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="true">
<key>
<column name="observationId" not-null="true" />
</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<many-to-one name="unit" class="org.n52.sos.ds.hibernate.entities.Unit" fetch="select" lazy="no-proxy" foreign-key="observationUnitFk">
<column name="unitId" not-null="false" />
</many-to-one>
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="false" >
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="true" >
<key>
<column name="observationId" not-null="true" index="obshasoffobservationidx" />
</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<many-to-one name="unit" class="org.n52.sos.ds.hibernate.entities.Unit" fetch="select" lazy="no-proxy" foreign-key="observationUnitFk">
<column name="unitId" not-null="false" />
</many-to-one>
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="false" >
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="true" >
<key>
<column name="observationId" not-null="true" index="obshasoffobservationidx" />
</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<property name="validTimeEnd" type="timestamp">
<column name="validTimeEnd" length="29" />
</property>
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="false" >
<set name="offerings" table="observationHasOffering" inverse="false" fetch="select" lazy="true" >
<key>
<column name="observationId" not-null="true" index="obshasoffobservationidx" />
</key>
Expand Down

0 comments on commit 67475c6

Please sign in to comment.