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
Post a Comment