Skip to content

List parameter type in findBy functions [DATAJPA-1736] #2031

Open
@spring-projects-issues

Description

@spring-projects-issues

Mihály Mikó opened DATAJPA-1736 and commented

The main issue is that I have an entity with a field of List type (with Converter to de/serialize) and I would like to write a findByBlist(List<B> bList) function to it. The parameter of the function is list type, but it seems behave not like a list, but separated parameters in the sql query. According the logs, the serialize converter successfully ran, but only for the list elements, not for the list as an object.

Currently i am creating BListWrapper class to wrap this list and serialize it in the converter to single list object. This is working, but this Wrapper only a workaround and seems a boilerplate code.

It there any way to tell the findBy method to handle a list (or any complex type) as a single object, and not to spit it for several parameters in sql query? (If I use list at the IN clause, the functionality working perfectly, but not this time). I can write example codes if needed.

Thank you!


No further details from DATAJPA-1736

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions