pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Susannah Relf <cyclingrelf@googlemail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Java persistence with enum types
Date: Sun, 24 May 2009 14:29:10 +0800
Message-ID: <4A18E936.1030803@postnewspapers.com.au> (raw)
In-Reply-To: <548aeab30905230702x1e7d0620nb3686c49bf889a68@mail.gmail.com>
References: <548aeab30905230702x1e7d0620nb3686c49bf889a68@mail.gmail.com>

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#Enu...
... etc ...

--
Craig Ringer



view thread (4+ messages)  latest in thread

Message-ID: <4A18E936.1030803@postnewspapers.com.au>
Permalink:  ../4A18E936.1030803@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4A18E936.1030803@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, cyclingrelf@googlemail.com
  Subject: Re: Java persistence with enum types
  In-Reply-To: <4A18E936.1030803@postnewspapers.com.au>
  References: <548aeab30905230702x1e7d0620nb3686c49bf889a68@mail.gmail.com> <4A18E936.1030803@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox