假设有一table
p{
int id;
int step;
int year;
varchar name;
……
}
执行query = s.createQuery(from p where step=2 and year=2011);
然后把查询结果数据中的 step 设置成3后,重新插入表p
该如何操作。
...全文
1358打赏收藏
hibernate 查询结果 修改后 原表插入 如何实现
假设有一table p{ int id; int step; int year; varchar name; …… } 执行query = s.createQuery(from p where step=2 and year=2011); 然后把查询结果数据中的 step 设置成3后,重新插入表p 该如何操作。