Good idea on modifying the forAllPersistentFields method. I'll work on this and submit a patch in case anyone else is interested in using it.
-jason
| Ara Abrahamian <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 11/02/2001 11:49 AM
|
To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: RE: [Xdoclet-user] DataHolder for non-persistent fields |
I'm an XP fan. We added only what we needed. There wasn't a need for a
forAllProperties tag (in MethodTagsHandler), but now it seems there is.
You can easily add it, take a look at
MethodTagsHandler.forAllPersistentFields you'll get the idea. Or maybe
just change forAllPersistentFields to also include your special field
which has a special @tag.
Ara.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, November 02, 2001 6:49 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] DataHolder for non-persistent fields
I was looking for a way to make the generated data holder optionally
store a field that wasn't persistent in a CMP Entity bean. After
looking at the delivered dataobject.j, I decided I needed some way to
get at all of the fields, not just the persistent fields. It doesn't
look like there is a method available in AbstractEjbSubtask that can do
that.
Here's why I want to do it:
Using EJB1.1 without CMP2.0, my bean stores a String which is a unique
identifier to another bean (its PK). I have a method on my entity bean
which could look up a value from the other "foreign" bean. Obviously,
this method does not store its data persistently, but just looks up the
value once per bean at runtime. SO, it would be really nice if I could
mark that non-persistent field (with its getter and setter) to be a
member of the generated data holder. Does that make sense? Is there
any way to accomplish this today, or should I patch something up?
-jason
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
