I have 100% repro for this using Kotlin 1.0 and hibernate 5.0.11. @OneToMany(fetch = FetchType.LAZY, cascade = arrayOf(CascadeType.ALL), orphanRemoval = true) @JoinTable(name="asset_movies", joinColumns = arrayOf(JoinColumn(name="asset_id")), inverseJoinColumns = arrayOf(JoinColumn(name="movie_id"))) var movies: Set<Movie> = setOf<Movie>() If I make the above property val (that is only getter) then the above exception is not thrown. I tried placing the attributes on both field and the getter but it does not makes a difference. |