About getPrimaryKey method?

Discussions

General J2EE: About getPrimaryKey method?

  1. About getPrimaryKey method? (1 messages)

    Hi:

      Does the getPrimaryKey method is implemented by the container?
      How does the container know to get correct primary key and how to manage it?


    Best Regards!
    John Lee
  2. About getPrimaryKey method?[ Go to top ]

    Since in the bean properties ejb-jar.xml file you are metioning the Primary Key type of class and also in primary key class you need to over load hashCode() and equals() method so whatever the primary Key object you send it will convert into its hashcode and then get the Primary Key.