Skip to content

Add query derivation for delete queries [DATAJDBC-551] #771

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions