File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Entity bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Entity bean" Watch "Entity bean" New topic
Author

Entity bean

kedar parundekar
Ranch Hand

Joined: May 10, 2006
Posts: 40
Q ) In case of Entity Bean ->If the primary key is a composite key the primary key class should override the hashCode() and the equals() method.Why?
Yuan Ye
Ranch Hand

Joined: Mar 05, 2003
Posts: 172
I think so that hash based collection of the EJBs will work correctly. But is that mandatory?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity bean
 
Similar Threads
Bean Provider must create a primary key class for an entity bean
primay key ???
What is use of separate Primary Key Class in Entity Bean?
Primary key in Entity Bean
Is it possible to create a Entity Bean with no primary key?