Duc Nguyen wrote: > 1 is Primary Key a required class beside the home, remote, and bean > classes.
Tricky question - In general, yes it is required. However, if you don't care what the primary key is (you don't use it within your application with some implied meaning) then you can let the container create a class for you. When the keys are automatically generated, the primary key class is no longer required. > 2 if so how come I can't find any book that show me how to create that > PK class (examples) <author> Java 2 Enterprise Bible shows you how to do this (on shelves hopefully in Feb 02). </author> The class is really simple - create any class you like and just make sure it is serialisable. Anything after that is up to you. It is advisable though, to make sure you implement equals() and hashcode() correctly. > 3 where can I find more information regarding about this class file. EJB Spec. -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
