Skip to content
Advertisement

Tag: hql

Not supported for DML operations with JPA update query

This has been asked once before but the solution did not solve the issue. I am creating a JUnit test: The query the above test is calling is: Error: Answer The @Modifying annotation must be placed on the updateMaterialInventory method, along to the @Query annotation, to let Spring-data know that the query is not a query used to select values,

HQL unexpected AST node: :

My code is failing to inject the below repository. Based on the stack trace, it seems my HQL syntax is invalid, but I’m not sure what I’ve done wrong. stack trace: Update: I’m also getting this error with this query: I updated my versions to the latest: Update: I’m also getting this error with: Answer Sadly, you cannot do :order.inProduction

Advertisement