Thank you Jeff, you were a precious help for me :-) And generally Abator is still a precious help for me in this project.
DM. Jeff Butler ha scritto: > As you've discovered, Abator does not trace relationships through your > database or generate this kind of a rich object model. I've been > thinking about ways to add that feature, but it is a very complex > problem to solve in a general way. So yes, you'll need to generate > custom queries and objects for this kind of model. > > Abator can still be of use to you because it will generate correct > insert, update, and delete statements. You should also be able to > reference some of the Abator generated select stuff too - for example, > the result maps are often reusable in more complex queries. > > In my experience, Abator generates a good foundation for building on. > You can (and usually should) generate custom queries to fill out the > remainder of your model. You can add your custom queries to the same > sql map files and Abator won't overwrite them when/if you regenerate. > > You can also see the "philosophy" page in the Eclipse documentation > for more thoughts about this subject. Here's an SVN link if you're > not using Eclipse: > > http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/tools/abator/eclipse/org.apache.ibatis.abator.doc/html/gettingstarted/philosophy.html > <http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/tools/abator/eclipse/org.apache.ibatis.abator.doc/html/gettingstarted/philosophy.html> > > HTH - > Jeff Butler > >
