Skip to content

Apply Kotlin Value Class unboxing for repository invocations #2868

Open
@mp911de

Description

@mp911de

When defining a value class as Id type ( MyRepository : Repository<MyEntity, MyValueClass>), calls that pass on Value class instances must apply wrapping/unwrapping according to the rules of how Kotlin expands Value class types.

It would be great to have an interceptor that translates arguments for findById(ID) calls, essentially all methods that accept ID.

See also spring-projects/spring-data-jpa#2840

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions