Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make NH-2856 test Firebird-friendly

  • Loading branch information...
commit 178a13945ce4c631a1e7b73d62d22e9b6c9eb2d6 1 parent ff9182d
@julian-maughan julian-maughan authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/NHibernate.Test/NHSpecificTest/NH2856/Fixture.cs
View
8 src/NHibernate.Test/NHSpecificTest/NH2856/Fixture.cs
@@ -21,7 +21,7 @@ protected override HbmMapping GetMappings()
mapper.Class<Person>(rc =>
{
rc.Table("Person");
- rc.Id(x => x.Id, m => m.Generator(Generators.Identity));
+ rc.Id(x => x.Id, m => m.Generator(Generators.Assigned));
rc.Property(x => x.Name);
rc.ManyToOne(x => x.Address, m => m.Column("AddressId"));
});
@@ -29,7 +29,7 @@ protected override HbmMapping GetMappings()
mapper.Class<Address>(rc =>
{
rc.Table("Addresses");
- rc.Id(x => x.Id, m => m.Generator(Generators.Identity));
+ rc.Id(x => x.Id, m => m.Generator(Generators.Assigned));
rc.Property(x => x.Name);
});
@@ -68,10 +68,10 @@ protected override void OnSetUp()
using (var session = OpenSession())
using (var transaction = session.BeginTransaction())
{
- var person = new Person { Name = "Joe Bloggs" };
+ var person = new Person { Id = 5, Name = "Joe Bloggs" };
session.Save(person);
- var address = new Address { Name = "Home" };
+ var address = new Address { Id = 15, Name = "Home" };
session.Save(address);
person.Address = address;
Please sign in to comment.
Something went wrong with that request. Please try again.