简体   繁体   中英

com.microsoft.sqlserver.jdbc.SQLServerException with jpa

i have question about Hibernate in JPA mode.

There is error message:

com.microsoft.sqlserver.jdbc.SQLServerException

The requested operation is not supported on forward only result sets. When java.persistence.Query set setMaxResults using by hibernate in JPA . I need to use setMaxResults() .

确保为JPA 添加的配置文件和jar 文件正确。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM