Hi!
[EMAIL PROTECTED] wrote:
> I have a a User bean, in which I would like to store a reference to
> another user bean (i.e., just call User.getAnotherUser(), and return the
> other User). The doclet takes this and goes ahead and creates a variable
> of type User in the generated *CMP class, but it doesn't appear that
> jBoss/JAWS can seamlessly do this yet. (hopefully I'm wrong on this
> point?)
You are. If a CMP-field is another bean we will store it properly in the
database (currently with its handle).
> What I guess I need to do is actually implement the getters and
> setters for this method myself, so I can get the PK/Handle/etc. from the
> dependent object, and store that as a primitive/string/whatever, and then
> code the getter to do a lookup for that bean.
Nope.
> The question is, with the doclet scheme, what is the best way to do this?
As is done in the AccountBean example (which references a Customer in
exactly the same way you outline above). Just do get/set methods, and
that's it.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]