|
What primary key you want to generate that is in the Database you are talking, ofcourse in the Enterprise java beans the Entity bean is moving all around this Primary key only.
Entity bean represent shared business data. i.e the data there in the database which is accessible by multiple clients. We maintain the client state using primary key and Entity beans.
Client state refers a record in the database, to search the records we need some rule so there comes the primary key only but not this is like the database primary key for talking.
i.e you can retrieve the data from the table where there is no primary key field is there. But by using this primary key we are accessing the record in the database and doing the operations
Last edited by linuxswan : 07-21-2008 at 03:37 PM.
Reason: i think some more information you need, i will
|