Results 1 to 2 of 2
  1. #1
    naresh_m is offline Member
    Join Date
    May 2008
    Rep Power

    Default How to generate primary key in EJB

    Helloo to all,
    How to generate a primary key using ejb .....

  2. #2
    linuxswan is offline Member
    Join Date
    Mar 2008
    Rep Power


    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

Similar Threads

  1. Replies: 0
    Last Post: 05-14-2008, 10:46 AM
  2. Replies: 0
    Last Post: 05-14-2008, 08:18 AM
  3. Replies: 1
    Last Post: 05-01-2008, 04:19 PM
  4. how to determine the primary key
    By osval in forum JDBC
    Replies: 1
    Last Post: 08-07-2007, 03:31 AM
  5. how to generate dynamic pdf
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts