Hi Annie,

I looked into doing this a while ago, and found out there is tool for
generating EJBs from an existing database, called Middlegen:

http://boss.bekk.no/boss/middlegen/

It's somehow hooked up with XDoclet, which has the ability to generated
Castor value objects I believe.  So even though you don't need EJBs it
seems that somehow you could go from Oracle->Castor.  But you'd have to dig
a little deeper than I did.

Mike.

> Hi,
> I'm planning to use Struts, Castor and Oracle to develop a web
> application. Sorry to ask a Castor question here, because I think many
> people are using Castor here.
>
> I'm a newbie of Castor. I want to use Castor with Oracle to generate
> all value objects of tables. What steps should I take? And How the
> source generator can help me to generate source code?
>
> Suppose I have add some code to the generated java files, and in the
> further, I modify the table definiation. What will happen if I
> re-generate the java files? All the code I added will lost?
>
> Thanks
>
> Annie




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to