Hi
<snip>
Generating EJBs from the table names or first gernerate domain Classes
(EJBs) and then create tables in the database.
My question is generate EJB code first or create tables first, in
otherwords top-to-down or down-to-top approach..
</snip>
This would depend on your project environment. If you have no control (authority) to work with the data layer then you are stuck and need to work from the bottom-up or use the preferred method of "meet-in-the-middle" OR-Mapping method.
If you do have access to the data layer, can create a new dataBase schema for the project, create new views for your project, modify the current DB schema etc. then it is generally accepted that the top-down approach is the recommended way to go, when working with OO designs.
<snip>
some times the fields of the table changes , how do we synchronize
automatically? my understanding about
XDoclet, if we change bean class, then all other dependency
files(local,home,ejb-jar.xml..) changes right? correct me if I'm wrong?
Could you send me the best document for XDoclet with WebSphere Vx? I
mean, I need to connect to Oracle database, get all tables_names, using
the table meta-data fields. I need to generate EJBs(local,remote,bean)
class and methods according to tablename and fields... I've been
searching this requirement on the internet for more than a week.. I
did'nt get any proper info.. can xdoclet does above requirement?
</snip>
WebSphere Application Developer 5.0 (WSAD 5.0) has this functionality built into the IDE. It is really easy to use the wizards and it is a matter of point & click.
The IDE has top-down, bottom-up & meet-in-the-middle functionality.
If your budget allows, I would recommend this option (or any other IDE that has this functionality) as it will save you plenty of frustration & time.
Cheers Luie
Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.