java - Hibernate Criteria issues a deprecation warnings -


i'm getting warning:

positional parameter considered deprecated; use named parameters or jpa-style positional parameters instead.

with criteria object (restrictions class). how add parameter criteria when criteria object doesnt seem have criteria::setstring.

here criteria:
criteria.add(restrictions.eq("userid", 1);

you're right deleted line , warning still here. caused use of posistionnal parameter ? in @namedquery (inside @entity) seems deprecated in hibernate 4.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -