Skip to content

Call to save(…) on customized intermediate repository fails with "Object is not an instance of declaring class." [DATACMNS-1289] #1731

Closed
@spring-projects-issues

Description

@spring-projects-issues

Markus Demetz opened DATACMNS-1289 and commented

When using custom implementations of Spring Data repositories together with inheritance and inherited entities (single table inheritance), I get a
InvalidDataAccessApiUsageException: object is not an instance of declaring class;
after upgrading Spring Boot from 1.5.10 to 2.0.0.

Example attached


Affects: 2.0.6 (Kay SR6)

Attachments:

Referenced from: pull request #280

Backported to: 2.0.7 (Kay SR7)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions