Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: Duplicate key exception in BMP


Message #1 by "jawahar govindaraj" <p2p_ejb@y...> on Tue, 3 Apr 2001 08:23:01
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...
> 

  Return to Index