Re: nhibernate - id change




> i know.
> but im affraid that im in the situation in which doing little behind
> hibernate
> and leave keys as their are right now will be less evil (less work).
> after setting new key id in the database object but before saving to
> database
> i could execute query that will change just the primary key, and later
> save whole db object. but it would not be nice :/
>
> regards
> roman
>

i guess i cant do that also, hibernate persister object holds associations
id - databaseobject, and before update its checked if db.key =
parsister.get..key
so i guess i cant do this on open hibernate session.
maybe someone could give me a little bit of advice ?
roman


.



Relevant Pages

  • 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)
  • Re: How to best use Hibernate
    ... Load it all into memory and then synchronize to the database. ... potential of Hibernate, and is the effort managable for lots and lots ...
    (comp.lang.java.programmer)
  • Re: What does everyone else do for graphically displaying data?
    ... JDBC API reference cover to cover a couple of times, ... you bind a data grid to a database table so that when you edit the ... put all JDBC code in the Model classes. ... Use something like Hibernate. ...
    (comp.lang.java.databases)
  • Re: How to best use Hibernate
    ... Load it all into memory and then synchronize to the database. ... potential of Hibernate, and is the effort managable for lots and lots ...
    (comp.lang.java.programmer)