• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enity EJB having a composite primary key

 
vaibhav paliwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to develop an Entity EJB(EJB 1.1 specification) which maps to a table which has has a composite primary key(eg number and varchar).
I have created a Primary key class in which following methods must be overridden
int Hashcode()
boolean equals(Object ob)
It will be very helpful if someone can help me with overriding of these methods in case of composite Primary Key
Vaibhav Paliwal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!