hi rahul,
u return the primary key type in the bean class and the remote interface in
home interface. this is because the container takes over when u return the
primary key and generates an instance of remte interface which is given to
the client.
Mukul Kumar
-----Original Message-----
From: Rahul Naithani [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 6:52 PM
To: [EMAIL PROTECTED]
Subject: Confused in the 1.1 spec
Hi !
Section 8.3.2 of the EJB 1.1 spec reads:
<Section>
...The home interface of every entity bean includes
the
findByPrimaryKey(primaryKey) method that allows a
client to locate an entity
object using a primary key. The name of the method is
always
findByPrimaryKey; it has a single argument that is the
same type as the
entity bean's primary key type, and its return type is
the entity bean's
remote interface. ...
</Section>
Whereas section 9.2.5 says:
<Section>
...Every entity bean must define the
ejbFindByPrimaryKey method. The result
type for this method must be the primary key type
(i.e. the
ejbFindByPrimaryKey method must be a
single-objectfinder)...
</Section>
I understand from this that section 8.3.2 says
FindByPrimarykey's return
type is the entity bean's remote interface but section
9.2.5 says
FindByPrimarykey's return (result) type is the primary
key type, which in my
case is a String type.
Are these 2 sections not contradictory?
Thanks,
Rahul.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with 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".