No, I get the same exception and it's a 'known' bug in jboss from before. Has to do
with the fact that the entity is not removed from the jboss cach when deleted from the
database. Hence jboss throws an exception when during create it finds the entity still
in the cach. If jboss is restarted between remove and create there is no problem.
Strange if it works for you Ken!!??
I was to take on this bug but haven't have the time yet. Hope to start with it
tomorrow.
/Lennart
----- Original Message -----
From: Ken Jenks <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 3:00 AM
Subject: Re: [JBoss-user] Re-using primary key issue
> At 12:40 PM 4/10/01 +1200, you wrote:
> >JBoss 2.1
> >
> >After deleting (remove()) an entity, if I try to create a new entity with
> >the same primary key as the previously deleted one, I get the following
> >exception
>
> I don't know. It works fine for me, using a modified version of the "CD"
> CMP example from the old documentation.
>
> -- Ken Jenks, http://abiblion.com/
>
> Tools for reading.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user