Register  |  Login



Earn money by sharing your knowledge

Quomon shares its advertising revenue with contributing experts that answer questions effectively. Join our community to share your knowledge and earn an income as you go.

Question

Status: Closed Points: 25 Time: 14:50 - Oct 20, 2006  

theDude

NHibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)

I got this NHibernate exception:

NHibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)

To be honest I don't know what it means. I don't think I'm flushing the session anywhere, but I have the feeling that the problem is something else.
Anyone knows what it might be?

theDude

Answer Discussion
Tutorials

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

Sergio Costa

Date:: Jan 05, 2007

Time:: 10:59

What were you doing when you got this?

theDude

Date:: Jan 06, 2007

Time:: 09:28

it happened a while back and I'm not sure what made it happen :-/
I think it was a problem of an id column in the database not being auto-numeric.

Sergio Costa

Date:: Jan 06, 2007

Time:: 09:57

Always try the auto hbm2dll.auto feature of nhibernate to check how the generated tables look like.
You can acomplish that in nhibernate configuration:

<add
key="hibernate.hbm2ddl.auto"
value="create"
/>

(don't forget to change the db location, or you'll fubar your current db)

theDude

Date:: Jan 06, 2007

Time:: 12:34

oh, great, didn't know about that.
You get the points for that...

Question Answered

This question has been closed, and points have been rewarded to the following experts:

Sergio Costa: 25

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top NHibernate Experts

View More

Rank

Expert

Points

1.

nidhi

55

2.

Sergio Costa

25

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es