|
Home > Archive > WebSphere Commerce suite > April 2004 > WCS Member table
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| N. Jones 2004-03-23, 6:34 am |
| Hi all.
I'm using WCS5.5 and I'm having some difficulties creating a new entry
in the Member table.
I've created a new MemberAccessBean, but whenever I try to use it I
get a FinderException thrown.
(code example)
MemberAccessBean memberAccessBean = new MemberAccessBean();
memberAccessBean.setInitKey_MemberId(myKey.toString());
I'm guessing, but I guess due to the way that the Member ejb is
structured, I must need to do something else before I can add data to
the member table directly..
Does anyone know the correct way to do this?
Also, I see that the MemberAccessBean doesn't have a getter or setter
for the TYPE field - only the member_id and state. Does anyone know
why this is?
Thanks in advance.
| |
| Yijun Cai 2004-04-22, 10:39 am |
| WCS used EJB inheritence where MEMBER is the base EJB for USER and
ORGANIZATION. Create a new USER/ORGANIZATION will automatically create
a entry in member table.
The default constructor in AccessBean is used to refresh data from DB.
To add an new entry, should use the AccessBean with parameters.
nj@findmehere.fsnet.co.uk (N. Jones) wrote in message news:<e1362b1.0403230248.5ffe49e6@posting.google.com>...
> Hi all.
> I'm using WCS5.5 and I'm having some difficulties creating a new entry
> in the Member table.
> I've created a new MemberAccessBean, but whenever I try to use it I
> get a FinderException thrown.
>
> (code example)
>
> MemberAccessBean memberAccessBean = new MemberAccessBean();
> memberAccessBean.setInitKey_MemberId(myKey.toString());
>
> I'm guessing, but I guess due to the way that the Member ejb is
> structured, I must need to do something else before I can add data to
> the member table directly..
>
> Does anyone know the correct way to do this?
>
> Also, I see that the MemberAccessBean doesn't have a getter or setter
> for the TYPE field - only the member_id and state. Does anyone know
> why this is?
>
> Thanks in advance.
|
|
|
|
|