google / google/error-prone

ImmutableList<T> is not supporting by hibernate

Open
#746 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Hi,

i want to fulfill the requirements of Immutable entity classes, therefore the class is annotated with `@Immutable`
i have a list field to another entity class, so, instead of `List` i used the `ImmutableList` as the type of a field.
it is built, but when the tables are to be created by Hibernate, i have the `error : Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements: model.User.roles`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.