使用 Grails 我正在尝试像这样的动态查找器
Policy.findAllByResourceAndUser(resource,user)
但是当我调用这个时,grails 会引发这个异常
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: object references
an unsaved transient instance - save the transient instance before flushing: gmedia.User;
nested exception is org.hibernate.TransientObjectException: object references an unsaved
transient instance - save the transient instance before flushing: gmedia.User
我们需要保存finder的参数吗?我哪里错了?