List <Student> st = session.createQuery ("select ids from students where a = :a")
.setString("a", value)
.list();
//Errors out saying that ArrayList is an unknown entity
session.lock(st, LockMode.UPGRADE);
學生本身擴展Serializable。你如何在Hibernate中鎖定Serailizables的數組列表?休眠鎖定項目的陣列列表
將學生重命名爲學生? – Bas