Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AqlaSolutions opened this issue Aug 12, 2014 · 5 comments
Labels

Comments

@AqlaSolutions
Copy link

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
Copy link
Author

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

@chester89
Copy link
Collaborator

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

@AqlaSolutions
Copy link
Author

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

@hazzik
Copy link
Member

hazzik commented Aug 13, 2014

@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.

@chester89
Copy link
Collaborator

chester89 commented Aug 13, 2014

Got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants