Closed
Description
rod2j opened DATAJDBC-551 and commented
Derived delete/removeByXxx queries work as expected for return type void but fail when return type is long/Long or List<entity type>, where it should return the number of records or the list of entities actually deleted:
instead I get
org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type for: public abstract long
it also appears the generated SQL query is actually a SELECT instead of a DELETE whenever the derived delete query has a non void return type.
Affects: 2.0 GA (Neumann)
Issue Links:
- DATAJDBC-568 Derived delete query throws IncorrectResultSetColumnCountException
("is duplicated by")
Referenced from: pull request #230
2 votes, 7 watchers