On Thu, 3 Jun 2004, Paolo Salvan wrote: > Hi! > > Ok, third mail... > > I've heard that reverse-db can be the wroing road.... > > What do you suggest to create the various java, xml and sql db? > > Is it more confortable using torque, druid or what? Starting from the .java > class, some xml file or the sql DB? And how to generate all the remaining files?
This depends on the direction that you'll want to go. If you have Java classes, and want to create database tables for them, then the probably easiest way is to use the XDoclet module for generating the repository descriptor and table schemas, then Torque to create the tables in the database. If you have a existing database and want to create Java classes for them, then you should have a look at Druid (http://druid.sourceforge.net/). IMO it is generally easier (for a developer) to start with the classes and generate a matching database structure. This may give you suboptimal database structures (no normalization) but is easier to maintain. If however you have time- or load-critical aspects and a couple of database gurus at hand, you may want to start with the database and tweak the OJB to that (using customizations like your own row-readers). Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
