0
我有两个实体类Hibernate更新查询:如何设置默认值?
class User {
Integer userId;
String userName;
UserType userType;
}
和
class UserType {
Integer typeId;
String type;
Set<User> userList;
}
我如何可以设置所有user.userType
其中user.userType=null
new UserType()
通过HQL更新查询?
我是hibernate的新手。
阅读**更新查询示例**此链接的部分:http://www.mkyong.com/hibernate/hibernate-query-examples-hql/ –