Permalink
Browse files

Make NH-2856 test Firebird-friendly

  • Loading branch information...
1 parent ff9182d commit 178a13945ce4c631a1e7b73d62d22e9b6c9eb2d6 @julian-maughan julian-maughan committed Oct 22, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/NHibernate.Test/NHSpecificTest/NH2856/Fixture.cs
@@ -21,15 +21,15 @@ 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"));
});
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;

0 comments on commit 178a139

Please sign in to comment.