Re: nhibernate - id change
- From: "Roman" <dzikweekendowy@xxxxxxxxxxxxxx>
- Date: Fri, 2 Dec 2005 16:22:02 +0100
> 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
.
- References:
- nhibernate - id change
- From: Roman
- Re: nhibernate - id change
- From: Jon Skeet [C# MVP]
- Re: nhibernate - id change
- From: Roman
- Re: nhibernate - id change
- From: Jon Skeet [C# MVP]
- Re: nhibernate - id change
- From: Roman
- nhibernate - id change
- Prev by Date: Need example: Add password to Excel file.
- Next by Date: Re: Create class files from an assembly?
- Previous by thread: Re: nhibernate - id change
- Next by thread: Re: nhibernate - id change
- Index(es):
Relevant Pages
|