fluent-nhibernate icon indicating copy to clipboard operation
fluent-nhibernate copied to clipboard

Postgresql Schema Export: do not make integer id column serial if non native generator is specified

Open AqlaSolutions opened this issue 11 years ago • 5 comments

See http://stackoverflow.com/questions/24614778/do-not-make-integer-id-column-serial

In our project we need to create a db entry with assigned primary key but it becomes replaced with autoincremented value which is wrong.

The test project requires a postgres db server. https://github.com/vbprogr/nhpgserialbug.git

AqlaSolutions avatar Aug 12 '14 07:08 AqlaSolutions

In Jira tracker: "This not a bug of NHibernate, but rather the bug of Automapper generator of Fluent-NHibernate"

AqlaSolutions avatar Aug 12 '14 07:08 AqlaSolutions

I'll see what I can do. But I have to set up Postgres first :)

chester89 avatar Aug 12 '14 08:08 chester89

Ok, I will be here if you have any questions. It can run with default postgres installation (user: postgres, db: postgres, password: postgres).

AqlaSolutions avatar Aug 12 '14 10:08 AqlaSolutions

@chester89, Gleb, there is nothing to do with Postgres itself

Actually in this scenario the id in the mapping is mapped as <generator name="identity"> with ignorance of what was actually specified. So it could be checked with only unit test.

hazzik avatar Aug 13 '14 03:08 hazzik

Got it.

2014-08-13 7:58 GMT+04:00 Alexander Zaytsev [email protected]:

Gleb, there is nothing to do with postgers

Actually in this scenario the id in the mapping is mapped as with ignorance of what was actually specified.

— Reply to this email directly or view it on GitHub https://github.com/jagregory/fluent-nhibernate/issues/275#issuecomment-52007300 .

С уважением, Чермённов Глеб, тел. (916) 314-9324

chester89 avatar Aug 13 '14 07:08 chester89