Hi,
Literally tens of thousands of people have run the examples in the book with
out a problem. It must be a limitation of your tools and or server. You can
change your examples to use Integer if that works better with your tool.
Note: In the 3rd Edition of the book (http://oreilly.techrev.org/) I also use
single-field primary keys a lot since that seems to be easier for people new to
EJB. However, compound primary keys are still valuable in many cases.
Thanks!
Richard
--
Richard Monson-Haefel
Author of Enterprise JavaBeans, 2nd Edition (O'Reilly 2000)
Co-Author of Java Message Service (O'Reilly 2000)
http://www.jMiddleware.com
Darya Said-Akbari wrote:
> Hi,
>
> I wonder that anybody could run the Cabin example from
> chapter 4 of Richard Monson-Haefel EJB book.
>
> In the CabinPK class he use 'int' instead of 'Integer'
> for declaration. Shouldn't it be 'Integer' since
> CabinPK implements the Serializable interface?
>
> When you try it opposite, to model your Cabin EJB
> begining with your Database table CABIN, then the
> JBuilder4 wizard only use Integer instead of int.
>
> If anyone could run the example like given in the
> book,
> please let me know.
>
> Best regards,
> Darya
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> ===========================================================================
> 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".
===========================================================================
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".