ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NehaP <neha...@gmail.com>
Subject Question about Abator
Date Fri, 24 Aug 2007 12:47:01 GMT


I wasnt able to find a forum for Abator, hope this is the right forum for
this question.

Before using Abator, I had a set of beans, say of User and Address, that
looked like this

public class Address
   private String city, street;
   private int zipCode;
   // Getters and setters....

public class User
   private Address adr;
   // Other fields.. 
   // Getters and Setters


And my db has all these fields in the same table- User

When I try to use Abator to generate the required xml files and the DAOs,
the model bean that gets generated for the User class is obviously not
identical to my class. Modifying the generated code is not a good practice,
so I cant use the generated code and have to use my custom DAOs and xml

If only there were a way to specify to Abator to not generate model beans,
and to use my beans instead (I could provide the mapping), I could use the
generated DAOs and xml files. Is there a way of doing this?


PS: I'm a newbie at both- iBATIS  and Abator :-)
View this message in context: http://www.nabble.com/Question-about-Abator-tf4323332.html#a12311608
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message