[Hibernate] custom boolean mapping?

2003-08-14 Thread Tim Colson
Say folks - I just found out that type="boolean" or type="true_false" will put "TRUE" or "FALSE" into the DB and type="yes_no" will put "Y" or "N". Is there a way to customize so that integer 1 or 0 is placed in the DB instead? Thanks, Tim ---

RE: [Hibernate] custom boolean mapping?

2003-08-14 Thread Tim Colson
ate static final String FALSE = "0"; public String objectToSQLString(Object value) throws Exception { return ( ( (Boolean) value ).booleanValue() ) ? TRUE : FALSE; } Am I missing something stupid and simple? Thanks, Tim > -Original Message- > From: [EMAIL PROTECT