EJB programming & troubleshooting: findbyprimarykey

  1. findbyprimarykey (1 messages)

    hi everyone,

    I want to pass an int as an parameter to findByPrimaryKey method.
    what do i give in the xml file for

    what do i give in place of java.lang.String.


  2. findbyprimarykey[ Go to top ]

    i think u can't give the int i.e primitive data types to the findbyprimarykeymethod....

    u must have to pass an object only like a string or any class object..

    for using primitive datatype u have to create PK class and in that class declare u r varaiable of type int and use that for passing u r int value....