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
- RE: [Xdoclet-user] DataHolder for non-persistent fields VASQUEZ_JASON
- RE: [Xdoclet-user] DataHolder for non-persistent fields VASQUEZ_JASON
