-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Description
When I try to use Query annotation:
public interface WorkflowInstanceRepository extends JpaRepository<WorkflowInstance, Long> {
@query("SELECT wi FROM WorkflowInstance wi WHERE wi.currentState = :currentState")
WorkflowVariableInstance findByCustomParams(@param("currentState") String currentState);
}
Entity is marked as followed:
@entity(name = "workflow_instance")
public class WorkflowInstance {
...
}
I get an error:
org.hibernate.hql.internal.ast.QuerySyntaxException: WorkflowInstance is not mapped
Metadata
Metadata
Assignees
Labels
No labels