File tree 2 files changed +20
-1
lines changed
src/NHibernate.Test/NHSpecificTest/GH3530
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,13 @@ public class LocaleEntity
14
14
public virtual double DoubleValue { get ; set ; }
15
15
public virtual decimal DecimalValue { get ; set ; }
16
16
}
17
+
18
+ public class SchemaLocaleEntity
19
+ {
20
+ public virtual Guid Id { get ; set ; }
21
+ public virtual string IntegerValue { get ; set ; }
22
+ public virtual string DateTimeValue { get ; set ; }
23
+ public virtual string DoubleValue { get ; set ; }
24
+ public virtual string DecimalValue { get ; set ; }
25
+ }
17
26
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<hibernate-mapping xmlns =" urn:nhibernate-mapping-2.2" assembly =" NHibernate.Test"
3
3
namespace =" NHibernate.Test.NHSpecificTest.GH3530" >
4
- <class name =" LocaleEntity" >
4
+ <!-- The schema exporter should ignore this version but we should be able to map it to the version created below. -->
5
+ <class name =" LocaleEntity" schema-action =" none" table =" LocaleEntity" >
5
6
<id name =" Id" generator =" guid.comb" />
6
7
<property name =" IntegerValue" column =" IntegerValue" />
7
8
<property name =" DateTimeValue" column =" DateTimeValue" />
8
9
<property name =" DoubleValue" column =" DoubleValue" />
10
+ <property name =" DecimalValue" column =" DecimalValue" />
11
+ </class >
12
+ <!-- The schema exporter should export this version of the entity and generate text columns for all types. -->
13
+ <class name =" SchemaLocaleEntity" table =" LocaleEntity" >
14
+ <id name =" Id" generator =" guid.comb" />
15
+ <property name =" IntegerValue" column =" IntegerValue" />
16
+ <property name =" DateTimeValue" column =" DateTimeValue" />
17
+ <property name =" DoubleValue" column =" DoubleValue" />
18
+ <property name =" DecimalValue" column =" DecimalValue" />
9
19
</class >
10
20
</hibernate-mapping >
You can’t perform that action at this time.
0 commit comments