Skip to content

ImmutableList<T> is not supporting by hibernate #746

@pillesoft

Description

@pillesoft

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<T> i used the ImmutableList<T> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions