Bug 99 : Support for mapping booleans to java.sql.Types.BIT
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
1.2.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
02/04/2009
Updated 
02/04/2009
Type 
Bug
 
Attachments 
No attachments

Eddie has added in support for mapping booleans to java.sql.Types.BIT.

That is, boolean properties in you beans can be mapped to various types:
- java.sql.Types.BOOLEAN ... if the DB supports this
- java.sql.Types.INTEGER ... e.g. 0/1
- java.sql.Types.VARCHAR ... e.g. 'Y/N' 'T/F' etc

Eddie has added support for mapping boolean's to java.sql.Type.BIT (which is good for MySql users).

To use this:

## in ebean.properties
ebean.type.boolean.dbtype=bit

Refer to com.avaje.ebean.server.type.DefaultTypeFactory

 
Rob 02 Apr 09:07
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file