问题描述
session = sessionFactory.withOptions().tenantIdentifier(jndiName).openSession();
String queryString = "SELECT acm FROM Appointment ap JOIN AppointmentCouponMapping acm on acm.appointmentCouponMappingId = ap.appointmentCouponMappingId WHERE ap.appointmentId = :appointmentId and ap.organizationId = :organizationId";
return (AppointmentCouponMapping) session.createquery(queryString)
.setLong("appointmentId",appointmentId)
.setLong("organizationId",organizationId)
.uniqueResult();
错误:
21:42:39,689 INFO [stdout] (default task-3) java.lang.IllegalStateException: No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode
21:42:39,689 INFO [stdout] (default task-3) \-[IDENT] IdentNode: 'acm' {originalText=acm}
21:42:39,689 INFO [stdout] (default task-3)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)