[ https://issues.apache.org/jira/browse/IBATIS-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501217 ]
Jeff Butler commented on IBATIS-434: ------------------------------------ What are you expecting Abator to generate? If you have the property "tinyInt1isBit" set to "true", then I suppose you want a boolean. Otherwise, a byte. Is that correct? But my guess is that the driver still reports "Object" as the data in either instance. So I still recommend that you use a <columnOverride> to tell Abator what to do in this situation. This is the reason <columnOverride> exists. There are other instances in MySql where you need to use <columnOverride> - because MySql has many more type options than JDBC. There is some information in the Abator documentation about this. > Abator cannot map mysql tinyint data type! > ------------------------------------------- > > Key: IBATIS-434 > URL: https://issues.apache.org/jira/browse/IBATIS-434 > Project: iBatis for Java > Issue Type: Bug > Components: Tools > Environment: mysql 5.0.27 fro windows > Reporter: Andrea Pantaleoni > Priority: Minor > > This happens with the current version of Abator > when Abator try to map a table in mysql database map the tinyint data type > to Object java class > to reapet: > Create table if not exists Example ( > ID tinyint(1) > ) > ENGINE = InnoDB; > Abator will create: > public class Bug { > /** > * This field was generated by Abator for iBATIS. > * This field corresponds to the database column bug.id > * > * @abatorgenerated Mon Jun 04 14:20:19 CEST 2007 > */ > private Object id; > /** > * This method was generated by Abator for iBATIS. > * This method returns the value of the database column bug.id > * > * @return the value of bug.id > * > * @abatorgenerated Mon Jun 04 14:20:19 CEST 2007 > */ > public Object getId() { > return id; > } > /** > * This method was generated by Abator for iBATIS. > * This method sets the value of the database column bug.id > * > * @param id the value for bug.id > * > * @abatorgenerated Mon Jun 04 14:20:19 CEST 2007 > */ > public void setId(Object id) { > this.id = id; > } > } > which is not correct because the type tinyint is mapped to java class Object > Many thanks -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.