RE: [Hibernate] newbies question about ids

2003-08-22 Thread Thierry Hanot
Title: Message I was thinking of using a new IdentityGenerator , but it's not enough because i have the id only after the insert . The problem is the following , when you need to access to the DB before the insert for getting an id , it's ok , you have infos on the table in the IdGenerator ,

RE: [Hibernate] newbies question about ids

2003-08-22 Thread Thierry Hanot
Title: Message I was thinking of using a new IdentityGenerator , but it's not enough because i have the id only after the insert . The problem is the following , when you need to access to the DB before the insert for getting an id , it's ok , you have infos on the table in the IdGenerator ,

[Hibernate] newbies question about ids

2003-08-20 Thread Thierry Hanot
Title: Message Hello All I'm starting to use Hibernate and i have the following problem I'm working with an Oracle 9 DB hibernate 2.0.2 jdk1.4.2 . The Database is created with some Trigger on INSERTĀ for generating id's . Those Trigger populate ids but also populate some other default values