-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: can't map int[] for EJB3 usage...
PostPosted: Thu Jul 16, 2009 4:53 am 
Newbie

Joined: Thu Jul 16, 2009 4:49 am
Posts: 1
hi,

i try to map array of integers column from my postgresql 8.3 database to ejb 3.0 entity bean field. In EJB 2.1 I simply declared that column as java.sql.Array and worked fine. However, it's not working this way in 3.0. I tried using @Lob annotation, changing types from Integer[] to int[], to Serializable and so on... Nothing works, all the time when trying to insert via bean I got this error:

column "my_column_ is of type integer[] but expression is of type bytea (or bigint)

Then I tried with java.sql.Array, but hibernate says it can't determine column type for java.sql.Array...

I also can't find any help over internet...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.