jpa query results in duplicate primary key list data is always repeating the first data

Back context: JPA read in Oracle view, with a sql, read in the database IDE (PLSql) and the normal 878 records, code records 878 still holds, but all records are the same, i.e., the first database recording.

Reason: a view corresponding to the primary key is not provided entity class

Guess you like

Origin www.cnblogs.com/leohe/p/11706716.html