Re: hibernate "null id in entry" exception



aj wrote:

> Can anyone point me in the right direction or offer any advice?  Is
> hibernate attempting to insert something into the database that does
> not have it's identity column set?

The best way for finding that out is to start debugging your application :-)
As far as I remember I got this error after having tried to insert an object
which really had "null" for its ID.

I think it's a deterministic issue.
Keep us informed.

PS: Doesn't your DB raise a not-null-constraint-violation?

--
Bye
Georg
.



Relevant Pages

  • Re: nhibernate - id change
    ... > You just can't do that - Hibernate would get very confused about which ... > It sounds like you really need a different primary key, ... after setting new key id in the database object but before saving to ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simple Hibernate question
    ... > Can you use Hibernate with an existing database? ... >create all the tables it needs to, and you are not supposed to mess with ... Hibernate works great with an existing database. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Simple Hibernate question
    ... Can you use Hibernate with an existing database? ... create all the tables it needs to, and you are not supposed to mess with ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Database Backend?
    ... and a decent database ... As best as I can tell, Hibernate is the current best of breed. ... java code on the page, and that is a big pain to maintain. ... Tapestry is a very clean framework, but it takes a while to figure out. ...
    (comp.lang.java.programmer)
  • Re: acceptable way to program
    ... I'm an experienced database programmer learning the ... > Java/OO way of doing things and I'm puzzled that people use Hibernate ... There is undoubtedly some bad database programming being done by Java ... As for stored procedures, it is true that current production releases of ...
    (comp.lang.java.programmer)