In the debug foreground registration interface, fill in the registration information, the user name Ajax asynchronous verification times error, error file in the DAO file query statement.
Error message:
Java.lang.illegalargumentexception:org.hibernate.queryexception:legacy-style query parameters ('? ') is no longer Supported; Use Jpa-style ordinal parameters (e.g., '? 1 ') Instead:from com.itcast.shop.user.vo.User where username =? [from com.itcast.shop.user.vo.User where username =?]
At Org.hibernate.internal.ExceptionConverterImpl.convert (exceptionconverterimpl.java:133)
At Org.hibernate.internal.ExceptionConverterImpl.convert (exceptionconverterimpl.java:157)
At Org.hibernate.internal.ExceptionConverterImpl.convert (exceptionconverterimpl.java:164)
At Org.hibernate.internal.AbstractSharedSessionContract.createQuery (abstractsharedsessioncontract.java:713)
At Org.hibernate.internal.AbstractSharedSessionContract.createQuery (abstractsharedsessioncontract.java:103)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
Reason for error: The Find method is obsolete, causing the HQL statement format to be changed before it can be used.
The "?" in the HQL statement Change to Jpa-style:
String hql= "from User where username =? 0";
This makes it possible to query the information correctly.
SSH Framework integration encountered error--hibernate query statement error