You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Ivan Bojer <Iv...@citrix.com> on 2009/03/13 05:43:44 UTC

Postgresql and ENUMs

We just switched to postgresql 8.3 and enums seem like pretty nifty feature. The problem is that my mapping does not like enums. I know that there are custom typehandlers which one can use to convert Java enums into JDBC type, but what can I use if I want to convert Java INT into postgresql ENUM?

Re: Postgresql and ENUMs

Posted by Kengkaj Sathianpantarit <ke...@gmail.com>.
You just implement com.ibatis.sqlmap.client.extensions.TypeHandlerCallback
in a way you want.

On Fri, Mar 13, 2009 at 11:43 AM, Ivan Bojer <Iv...@citrix.com> wrote:

>  We just switched to postgresql 8.3 and enums seem like pretty nifty
> feature. The problem is that my mapping does not like enums. I know that
> there are custom typehandlers which one can use to convert Java enums into
> JDBC type, but what can I use if I want to convert Java INT into postgresql
> ENUM?
>