RE: [Hibernate] custom identifier class

2002-12-18 Thread phraktle
hi, it seems to be some sort of class-loading issue - the PrimaryKey class that the generator returns, and the one that the bean uses seems to have been loaded by a different classloader, so even though they are the same class, they are not compatible. have someone encountered the same issue? is t

RE: [Hibernate] custom identifier class

2002-12-16 Thread Gavin King
ED] > Sent: Tuesday, 17 December 2002 7:14 AM > To: [EMAIL PROTECTED] > Subject: RE: [Hibernate] custom identifier class > > > hi, > > excuse my arrogance for re-posting this, but i haven't found > a solution for the problem described below: > > On Tue, 1

RE: [Hibernate] custom identifier class

2002-12-16 Thread phraktle
hi, excuse my arrogance for re-posting this, but i haven't found a solution for the problem described below: On Tue, 10 Dec 2002 12:34:56 -0500, [EMAIL PROTECTED] said: > hi, > > On Tue, 10 Dec 2002 10:34:30 +1100, "Gavin King" <[EMAIL PROTECTED]> > said: > > Oh, so it isn't actually a composite

RE: [Hibernate] custom identifier class

2002-12-10 Thread phraktle
hi, On Tue, 10 Dec 2002 10:34:30 +1100, "Gavin King" <[EMAIL PROTECTED]> said: > Oh, so it isn't actually a composite key. I didn't understand > properly then. Well, using a UserType is exactly the right > approach. You would also need to implement IdentifierGenerator > to generate instances of P

RE: [Hibernate] custom identifier class

2002-12-10 Thread Gavin King
MAIL PROTECTED] > Subject: RE: [Hibernate] custom identifier class > > > hi, > > On Tue, 10 Dec 2002 09:10:09 +1100, "Gavin King" > <[EMAIL PROTECTED]> > said: > > This has been requested once before, and it would be very > > trivial to

RE: [Hibernate] custom identifier class

2002-12-10 Thread phraktle
hi, On Tue, 10 Dec 2002 09:10:09 +1100, "Gavin King" <[EMAIL PROTECTED]> said: > This has been requested once before, and it would be very > trivial to add support for a subelement of > . But theres always something very fishy > about using a generated (ie. synthetic) composite id. It > really m

RE: [Hibernate] custom identifier class

2002-12-09 Thread Gavin King
This has been requested once before, and it would be very trivial to add support for a subelement of . But theres always something very fishy about using a generated (ie. synthetic) composite id. It really makes no sense. It never even makes sense to have a single be generated I can't imagi

Re: [Hibernate] custom identifier class

2002-12-09 Thread phraktle
hi, On 08 Dec 2002 10:25:30 -0500, "Chris Winters" <[EMAIL PROTECTED]> said: > On Sat, 2002-12-07 at 19:12, [EMAIL PROTECTED] wrote: > > how can one use an alternative class for primary keys (eg. MyPrimaryKey > > instead of a string)? I tried using a UserType for this purpose, but > > reflection f

Re: [Hibernate] custom identifier class

2002-12-08 Thread Chris Winters
On Sat, 2002-12-07 at 19:12, [EMAIL PROTECTED] wrote: > how can one use an alternative class for primary keys (eg. MyPrimaryKey > instead of a string)? I tried using a UserType for this purpose, but > reflection fails with an IllegalArgumentException in > AbstractEntityPersiser.setIdentifier. Look

[Hibernate] custom identifier class

2002-12-08 Thread phraktle
hi, how can one use an alternative class for primary keys (eg. MyPrimaryKey instead of a string)? I tried using a UserType for this purpose, but reflection fails with an IllegalArgumentException in AbstractEntityPersiser.setIdentifier. best regards, viktor -- [EMAIL PROTECTED] -- htt