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