请问一下,如何用hibernate取刚插入PK的值?请问,我用hibernate执行了一条语句,如何在语句的下一行获取刚插入的主键id值呢?[解决办法]参考 Hibernate API:public Serializable save(Object object)返回值即自动生成的 ID。