hi andrius,
Thanks for your ideas. I have some follow up questions if you have the time.
>: In addition, I'm looking at using EJBDoclet, which I've found does a
>: very nice job of generating the EJB classes & interfaces.
>yep, and you can also generate the dataholder classes automatically, which
>you can directly reuse in the webwork frontend.
yes, I'm aware that EJBDoclet automatically generates the dataholder
classes. Didn't realize this was integrated with the Webwork front end,
but I guess that makes sense considering that Rickard is the author of both.
>: 1. I would like to use Castor to manage persistence of EJB BMP entity
>: beans, given JAWS' inability at the moment to support dependent objects.
>An
>yep, this is a real problem until ejb2.0.
>
>one thought I had recently was automatic generation of session beans with
>finder-like methods using doclet approach, that would return collections of
>the dataholders automatically (using jdbc). this would solve 1->n
>relationships problem in data structures. corresponding CMP entities could
>provide the creation, updating, deletion of such records. this would not
>provide a *real* automatic persistence, and probably would not be portable,
>but would suffice for most routine find'n'display tasks.
I'm doing something similar - I created a generic data object that I call
ListItemData that contains 4 properties: primKeyStr (string version of a
primary key), name (that contains the name to display with an href link on
a web page or other list, e.g. Swing list), description (containing a
longer string to display...optional), and ejbname. I'm planning to create
1 or perhaps multiple session beans that provide finder-like methods to
return a collection of ListItemData objects to the client. These objects
are then used to generate a list output to the user. If the user selects
one, the ejbname and primKeyStr are used to generate a call to the
appropriate Entity EJB for display/update/delete.
Question: how do you see your idea solving the 1->n relationship
problem? I don't follow...
Thanks again,
Rick
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>List Help?: [EMAIL PROTECTED]
--------------------
Rick Horowitz
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]