Re: Java persistence with enum types

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Susannah Relf <cyclingrelf(at)googlemail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Java persistence with enum types
Date: 2009-05-24 06:29:10
Message-ID: 4A18E936.1030803@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Susannah Relf wrote:
> Hi, I have an enum type in my postgres 8.3 database:
>
> CREATE TYPE typeOfNames AS ENUM ('Latin', 'Common', 'Local');
>
> I am trying to access the database through the Java Persistence API using
> Netbeans:
> @Lob
> @Column(name = "typeofname")
> private String typeofname;

One minute with Google:

@Enumerated
http://java.sun.com/javaee/5/docs/api/javax/persistence/Enumerated.html

http://forums.java.net/jive/thread.jspa?messageID=240608
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#Enumerated
... etc ...

--
Craig Ringer

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Susannah 2009-05-25 12:01:30 Re: Java persistence with enum types
Previous Message Susannah Relf 2009-05-23 14:02:12 Java persistence with enum types