Re: JPA + enum == Exception - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: JPA + enum == Exception
Date
Msg-id CADK3HH+yMtvyrM6y26w+61vwFX3N0BaV7229Fwdy0GOawF3NcA@mail.gmail.com
Whole thread Raw
In response to JPA + enum == Exception  ("Marc G. Fournier" <scrappy@hub.org>)
List pgsql-jdbc
Marc,

Any chance you could get some example code ?

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca



On Mon, Dec 17, 2012 at 7:01 PM, Marc G. Fournier <scrappy@hub.org> wrote:

I'm trying to use enum's in a database, but the java guys are telling me that they are having problems with inserts … reading from the database isn't a problem, but there appears to be an issue with converting from string -> enum when saving it back again …

they are using JPA2 / EJB + Eclipselink … on the jboss side, we are running the latest jdbc driver …

considering postgresql has always supported enum and extending types, I think they might be missing something, but I can't think of what to suggest …

Is there a doc online I can maybe point them to about doing this … ?




--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: JPA + enum == Exception
Next
From: Chen Huajun
Date:
Subject: Re: performance problem of Failover Datasource?