I would suggest having a "getDetails" method on the actual CMP bean, so your
could would look like:
UserLocalHome home = UserUtil.getLocalHome();
UserLocal local = home.findByPrimaryKey( new UserPK("123") );
UserData data = local.getDetails();
-----Original Message-----
From: tek1 [mailto:[EMAIL PROTECTED]]
Sent: 20 September 2002 04:37
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] stupid question: how to obtain XXXData object?
i must first apologize for this question since it's been a while since i've
worked with ejb's, but...
how do you obtain the XXXData object when making a local client call?
here are the xdoclet-generated files that i'm working with for a "User"
class:
UserCMP.java
UserData.java
UserHome.java
UserLocal.java
UserLocalHome.java
UserPK.java
UserRemote.java
UserUtil.java
is this the correct way?
UserLocalHome home = UserUtil.getLocalHome();
UserLocal local = home.findByPrimaryKey( new UserPK("123") );
UserData data = new UserData(local.getId(), local.getPw(), ... );
or is there an easier/more efficient way?
thank you.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
For optimum solutions that save you time, visit www.ds-s.com.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user