>public PaketDetailBranchesPK ejbCreate(PaketDetailBranches objdata) throws 
>CreateException {
>   this.setStPacketCd(objdata.getStPacketCd());
>   this.setStBranchId(objdata.getStBranchId());
>   return null;
>}

First, kudos for first reading the spec and attempting to answer
the question on your own.  Second, kudos on distilling down the
problem so we don't' have to go hunting.  Such a well mannered post
certainly deserves a response, so I'll do my best to help.

So far this looks correct.  My guess is the error must be elsewhere.
First, what is the type of objdata?  Is it another entity bean
instance or is it merely a value object?  Second, who's calling
PacketDetailHome.create()?  A common error in a master-detail entity
relationship is to have the ejbCreate() method of one entity call the
home.create() for it's detail entity, which violates the referential
integrity constraints of the database.  Instead, such relationships
should be established in the master entity's ejbPostCreate(), so
that the master entity's data gets inserted to the database prior
to inserting the detail entity's data.

Lastly, what app server are you using?  Most app servers have a flag
you can give when building the EJB that lets you see the generated
container and CMP code.

If you send me the code needed to recreate the problem, I'll take
a look at it.

Doug

===========================================================================
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".

Reply via email to