Skip to content

Commit

Permalink
nhibernateGH-3530: Force all columns to be strings to highlight conve…
Browse files Browse the repository at this point in the history
…rsion errors.
  • Loading branch information
David Ellingsworth authored and David Ellingsworth committed May 15, 2024
1 parent 8b59014 commit 9d56112
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ public class LocaleEntity
public virtual double DoubleValue { get; set; }
public virtual decimal DecimalValue { get; set; }
}

public class SchemaLocaleEntity
{
public virtual Guid Id { get; set }

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / PostgreSQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / PostgreSQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / PostgreSQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / PostgreSQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SQLite

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SQLite

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SQLite

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SQLite

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Oracle

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Oracle

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Oracle

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Oracle

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird4

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird4

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird4

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / Firebird4

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / MySQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / MySQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / MySQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / MySQL

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver

{ or ; or => expected

Check failure on line 20 in src/NHibernate.Test/NHSpecificTest/GH3530/Entities.cs

View workflow job for this annotation

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver

{ or ; or => expected
public virtual string IntegerValue { get; set; }
public virtual string DateTimeValue { get; set; }
public virtual string DoubleValue { get; set; }
public virtual string DecimalValue { get; set; }
}
}
12 changes: 11 additions & 1 deletion src/NHibernate.Test/NHSpecificTest/GH3530/Mappings.hbm.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test"
namespace="NHibernate.Test.NHSpecificTest.GH3530">
<class name="LocaleEntity">
<!-- The schema exporter should ignore this version but we should be able to map it to the version created below. -->
<class name="LocaleEntity" schema-action="none" table="LocaleEntity">
<id name="Id" generator="guid.comb" />
<property name="IntegerValue" column="IntegerValue"/>
<property name="DateTimeValue" column="DateTimeValue"/>
<property name="DoubleValue" column="DoubleValue"/>
<property name="DecimalValue" column="DecimalValue"/>
</class>
<!-- The schema exporter should export this version of the entity and generate text columns for all types. -->
<class name="SchemaLocaleEntity" table="LocaleEntity">
<id name="Id" generator="guid.comb" />
<property name="IntegerValue" column="IntegerValue"/>
<property name="DateTimeValue" column="DateTimeValue"/>
<property name="DoubleValue" column="DoubleValue"/>
<property name="DecimalValue" column="DecimalValue"/>
</class>
</hibernate-mapping>

0 comments on commit 9d56112

Please sign in to comment.