a database primary key can be duplicate and must be unique. you should not should same
primary key to insert two records. please study database concept before!!
jawahar govindaraj wrote:
> Haii,
>
> I'm new comer to EJB.I'm developed a BMP entity.It'z fine at the first
> time of insert operation.I found exception when I use the same primary key
> second time to insert/update.
>
> can u give me suggestion of how to implement Duplicate key exception.
>
> I will be very happy if u give an example code for the same subject.
>
> Jawahar Govindaraj
> kgjawahar@y...
>