Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re[eclipselink-users] strictions not changing...

Hi, im trying to make some queries with criteriaBuilder and when i did my
first query 

i did a query by login: 
FINE: SELECT ID, STATUS, LOGIN, NOME, PASSWORD FROM geral.USUARIO WHERE
(LOGIN = ?)
	bind => [a]

and when i change the parameter to 'diego' the same binding is showed
FINE: SELECT ID, STATUS, LOGIN, NOME, PASSWORD FROM geral.USUARIO WHERE
(LOGIN = ?)
	bind => [a]

i tried to make this:
entityManager =
entityManager.getEntityManagerFactory().createEntityManager()
			qb = entityManager.getCriteriaBuilder();

and this: 
getCriteriaBuilder().getRestriction().getExpressions().add(exp);

so.. i dont know how to change this bind..  its always locking in my first
try... i cant change the query anymore.

is there any way to add restrictions dinamically to criteriaQuery?

sry about english.. tks
-- 
View this message in context: http://old.nabble.com/Restrictions-not-changing...-tp26956138p26956138.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top