generator class="native" not works with NHibernate.JetDriver

Description

If you have define the id with a autonumeric and use generator class="native" when save the following mistake happens: "null id in entry (don't flush the Session after an exception occurs)".

If use generator class="increment" it works well.

I dont know if is normal or a bug, but is not nice if you use the same mapping files with access and sql server.

Environment

None

Attachments

1

Activity

Former user 
February 13, 2007 at 2:09 PM

This is a different issue then (this one is about Jet driver), please open a new issue and provide the necessary details (classes, mappings, test case).

Jackson.Ling 
February 13, 2007 at 11:49 AM

I've noticed that this issue still exists in version 1.2.0.2003, on NHibernate.Driver.SqlServerCeDriver.

generator class identity and native could not work well.

Former user 
January 7, 2007 at 10:36 PM

Should be fixed now, please test if you can.

SergioS 
December 21, 2006 at 6:03 AM

a little example.

Former user 
December 21, 2006 at 3:53 AM

Please attach a minimal test case.

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 21, 2006 at 3:49 AM
Updated August 20, 2008 at 1:31 PM
Resolved January 7, 2007 at 10:36 PM
Who's Looking?