Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re: [JPQL] Problem statement SELECT ... IN () , with parameters

Pinaki Poddar

2008-08-11

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,
> q.setParameter("roleIds", sb.toString());

Set the IN parameter not as a String but a List<T> where T is the type of
Role.id.

For example, if Role.id is int, then
 q.setParameter("roleIds", Arrays.asList(new int[]{1,2}));


--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.