如何将参数传递给hibernate中的子查询?我试着这个,但我得到一个异常:即使查询清楚地显示:currentDate不存在作为(... [查询]中的命名参数): 查询看起来像 createQuery
(
"from mymodel where someid = :modelId and otherKey not in
(select c.otherKey from someO
我开始使用Hibernate,并且我得到了一个应该有枚举类型的实体的以下错误。 java.lang.IllegalArgumentException: No enum const class app.entity.ObjType.
java.lang.Enum.valueOf(Enum.java:214)
org.hibernate.type.EnumType.nullSafeGet(