CMP bean without PK

Hi all I want to create CMP bean without primary key. is it possible.. cos my table fields doesnt have any unique datas and also i dont want to create any column in that table.. Thanks in advancePyari
[248 byte] By [sbpyari] at [2007-9-26 1:28:56]
# 1
It is impossible to work without a primary key. The PK plays an important role in the EJB framework. Plus it wouldn't be logical to work without a PK (remember an Entity Bean represents a "row" in the database, so it should know WHAT it represents)Raphael Parree
RaphaelP at 2007-6-29 1:15:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

u can very well create a entity bean without a seperate

primary key class,

it is still possible even without a PK in the database

but as the previous reply by Mr.Raphael,, has suggested it is logically wrong and the purpose of "enetity" bean itself does not serve any purpose

allambadshah at 2007-6-29 1:15:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...