persistence@glassfish.java.net

How To Store a String[] to VarChar(255) []?

From: Thandsome <anyonetff_at_msn.com>
Date: Mon, 13 Apr 2009 10:09:57 +0800

so...

my database contains some array types. such as "varchar (n) []", "float []", "int []"

i want to use JPA to read and store these columns

 

@Column(name="column1") // varchar (100) []

String [] property1;

 

@Column(name="column2") // float []

double [] property2;

 

but, toplink tells me thant those columns cannot be read or store. the program meets an exception...

 

is there any solution to solve the problem?

_________________________________________________________________
上Windows Live 中国首页,下载最新版Messenger!
http://im.live.cn/