Re: JPA + enum == Exception

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JPA + enum == Exception
Date: 2012-12-17 23:18:10
Message-ID: CADK3HH+yMtvyrM6y26w+61vwFX3N0BaV7229Fwdy0GOawF3NcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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(at)hub(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2012-12-17 23:48:01 Re: multiple CREATE FUNCTION AS items for PLs
Previous Message Marc G. Fournier 2012-12-17 23:01:41 JPA + enum == Exception

Browse pgsql-jdbc by date

  From Date Subject
Next Message Chen Huajun 2012-12-18 00:05:54 Re: performance problem of Failover Datasource?
Previous Message Marc G. Fournier 2012-12-17 23:01:41 JPA + enum == Exception