Skip to content

Commit 578bf11

Browse files
committed
DB2 has "id" as a reserved keyword :-/
1 parent 1bfb064 commit 578bf11

9 files changed

+18
-18
lines changed

src/NHibernate.Test/Immutable/EntityWithMutableCollection/Inverse/ContractVariation.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</id>
4545
<property name="CustomerName" not-null="true" />
4646
<property name="Type" not-null="true" />
47-
<bag name="Variations" inverse="true" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
47+
<bag name="Variations" inverse="true" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
4848
<key column="contract" />
4949
<one-to-many class="ContractVariation" />
5050
</bag>
@@ -68,7 +68,7 @@
6868
</class>
6969

7070
<class name="ContractVariation" mutable="false">
71-
<id name="Id">
71+
<id name="Id" column="`id`">
7272
<generator class="increment" />
7373
</id>
7474
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/Inverse/ContractVariationOneToManyJoin.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</id>
4848
<property name="CustomerName" not-null="true" />
4949
<property name="Type" not-null="true" />
50-
<bag name="Variations" inverse="true" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
50+
<bag name="Variations" inverse="true" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5151
<key column="contract" />
5252
<one-to-many class="ContractVariation" />
5353
</bag>
@@ -71,7 +71,7 @@
7171
</class>
7272

7373
<class name="ContractVariation" mutable="false">
74-
<id name="Id">
74+
<id name="Id" column="`id`">
7575
<generator class="increment" />
7676
</id>
7777
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/Inverse/ContractVariationVersioned.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<version name="Version" column="VERS" type="long" />
4949
<property name="CustomerName" not-null="true" />
5050
<property name="Type" not-null="true" />
51-
<bag name="Variations" inverse="true" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
51+
<bag name="Variations" inverse="true" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5252
<key column="contract" />
5353
<one-to-many class="ContractVariation" />
5454
</bag>
@@ -72,7 +72,7 @@
7272
</class>
7373

7474
<class name="ContractVariation" mutable="false">
75-
<id name="Id">
75+
<id name="Id" column="`id`">
7676
<generator class="increment" />
7777
</id>
7878
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/Inverse/ContractVariationVersionedOneToManyJoin.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<version name="Version" column="VERS" type="long" />
5252
<property name="CustomerName" not-null="true" />
5353
<property name="Type" not-null="true" />
54-
<bag name="Variations" inverse="true" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
54+
<bag name="Variations" inverse="true" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5555
<key column="contract" />
5656
<one-to-many class="ContractVariation" />
5757
</bag>
@@ -75,7 +75,7 @@
7575
</class>
7676

7777
<class name="ContractVariation" mutable="false">
78-
<id name="Id">
78+
<id name="Id" column="`id`">
7979
<generator class="increment" />
8080
</id>
8181
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/NonInverse/ContractVariation.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</id>
4545
<property name="CustomerName" not-null="true" />
4646
<property name="Type" not-null="true" />
47-
<bag name="Variations" inverse="false" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
47+
<bag name="Variations" inverse="false" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
4848
<key column="contract" />
4949
<one-to-many class="ContractVariation" />
5050
</bag>
@@ -68,7 +68,7 @@
6868
</class>
6969

7070
<class name="ContractVariation" mutable="false">
71-
<id name="Id">
71+
<id name="Id" column="`id`">
7272
<generator class="increment" />
7373
</id>
7474
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/NonInverse/ContractVariationOneToManyJoin.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</id>
4848
<property name="CustomerName" not-null="true" />
4949
<property name="Type" not-null="true" />
50-
<bag name="Variations" inverse="false" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
50+
<bag name="Variations" inverse="false" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5151
<key column="contract" />
5252
<one-to-many class="ContractVariation" />
5353
</bag>
@@ -71,7 +71,7 @@
7171
</class>
7272

7373
<class name="ContractVariation" mutable="false">
74-
<id name="Id">
74+
<id name="Id" column="`id`">
7575
<generator class="increment" />
7676
</id>
7777
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/NonInverse/ContractVariationUnidir.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</id>
4444
<property name="CustomerName" not-null="true" />
4545
<property name="Type" not-null="true" />
46-
<bag name="Variations" inverse="false" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
46+
<bag name="Variations" inverse="false" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
4747
<key column="contract" />
4848
<one-to-many class="ContractVariation" />
4949
</bag>
@@ -63,7 +63,7 @@
6363
</class>
6464

6565
<class name="ContractVariation" mutable="false">
66-
<id name="Id">
66+
<id name="Id" column="`id`">
6767
<generator class="increment" />
6868
</id>
6969
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/NonInverse/ContractVariationVersioned.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<version name="Version" column="VERS" type="long" />
4949
<property name="CustomerName" not-null="true" />
5050
<property name="Type" not-null="true" />
51-
<bag name="Variations" inverse="false" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
51+
<bag name="Variations" inverse="false" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5252
<key column="contract" />
5353
<one-to-many class="ContractVariation" />
5454
</bag>
@@ -72,7 +72,7 @@
7272
</class>
7373

7474
<class name="ContractVariation" mutable="false">
75-
<id name="Id">
75+
<id name="Id" column="`id`">
7676
<generator class="increment" />
7777
</id>
7878
<property name="Text" type="StringClob" />

src/NHibernate.Test/Immutable/EntityWithMutableCollection/NonInverse/ContractVariationVersionedOneToManyJoin.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<version name="Version" column="VERS" type="long" />
5252
<property name="CustomerName" not-null="true" />
5353
<property name="Type" not-null="true" />
54-
<bag name="Variations" inverse="false" order-by="id asc" mutable="true" cascade="all-delete-orphan" fetch="join">
54+
<bag name="Variations" inverse="false" order-by="`id` asc" mutable="true" cascade="all-delete-orphan" fetch="join">
5555
<key column="contract" />
5656
<one-to-many class="ContractVariation" />
5757
</bag>
@@ -75,7 +75,7 @@
7575
</class>
7676

7777
<class name="ContractVariation" mutable="false">
78-
<id name="Id">
78+
<id name="Id" column="`id`">
7979
<generator class="increment" />
8080
</id>
8181
<property name="Text" type="StringClob" />

0 commit comments

Comments
 (0)