| Hi Jeff, The duplicate methods are in ALL files, my table should map to a Cart family, so it generates Cart.java, CartDAO.java, CartDAOImpl.java, CartExample.java, and CartKey.java When regenerating abator strips the comment, but not the field and methods, so the result looks like this for CartKey.java: public class CartKey { private Integer cartID; public Integer getCartID() { return cartID; } public void setCartID(Integer cartID) { this.cartID = cartID; } /** * This field was generated by Abator for iBATIS. This field corresponds to the database column lighting.lcart.c_cartID * @abatorgenerated Tue Apr 11 15:43:19 CEST 2006 */ private Integer cartID; /** * This method was generated by Abator for iBATIS. This method returns the value of the database column lighting.lcart.c_cartID * @return the value of lighting.lcart.c_cartID * @abatorgenerated Tue Apr 11 15:43:19 CEST 2006 */ public Integer getCartID() { return cartID; } /** * This method was generated by Abator for iBATIS. This method sets the value of the database column lighting.lcart.c_cartID * @param cartID the value for lighting.lcart.c_cartID * @abatorgenerated Tue Apr 11 15:43:19 CEST 2006 */ public void setCartID(Integer cartID) { this.cartID = cartID; } } Also note that a second regeneration adds another group of uncommented(?) field and set/get methods. The comment with @abatorgenerated rertain the dat from the original generation. So the problem is twofold: 1) the stuff previously generated is not recognized and deleted (some error in regular _expression_ maybe) 2) the newly generated stuff doesn't include comments The files char-set is MacRoman (as is default on Eclipse Mac) and the line endings are UNIX (also default) If I can be of further assistance, please let me know! Maarten
|
- Re: Abator regeneration causes duplicated methods Maarten Meijer
- Re: Abator regeneration causes duplicated methods Jeff Butler
- Re: Abator regeneration causes duplicated methods Maarten Meijer
- Re: Abator regeneration causes duplicated methods Maarten Meijer
- Re: Abator regeneration causes duplicated meth... Jeff Butler
- Re: Abator regeneration causes duplicated ... Jeff Butler
- Re: Abator regeneration causes duplicated methods Maarten Meijer
- Re: Abator regeneration causes duplicated methods Jeff Butler
- Re: Abator regeneration causes duplicated methods Maarten Meijer
