Skip to content

Mapping collections to SQL arrays does not work with repositories #3356

@markusheiden

Description

@markusheiden

When mapping collections to SQL arrays like this with Hibernate 6.4

class MyEnttiy {
  @Column(name = "ids")
  private SortedSet<Long> ids;
  ...
}

a repository with queries against that column cannot be created

interface MyRepository extends Repository<MyEntity, Long> {
  MyEntity findByIds(SortedSet<Long> ids);
}

results in

Operator SIMPLE_PROPERTY on ids requires a scalar argument, found interface java.util.SortedSet in method public abstract MyEntity MyRepository.findByIds(java.util.SortedSet)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions