Re: Java persistence with enum types
| От | Craig Ringer |
|---|---|
| Тема | Re: Java persistence with enum types |
| Дата | |
| Msg-id | 4A18E936.1030803@postnewspapers.com.au обсуждение исходный текст |
| Ответ на | Java persistence with enum types (Susannah Relf <cyclingrelf@googlemail.com>) |
| Ответы |
Re: Java persistence with enum types
|
| Список | 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
В списке pgsql-jdbc по дате отправления: