Title: RE: Primary key in an EJB
Table doesn't have to have a primary, but there should be column that uniques defines each row different. This usually is a primary key, but any index column should work... For these primary keys or index columns, you should create a proper primary key f
Hi,
How should I specify a primary key in an Entity bean, for which a db
table
really does not have a primary key? To my understanding, a database
table with
a primary key can be represented with Entity beans as follows:
ejbActivate():
primKey = ctx.getPrimaryKey();
ejbPassivate():