I have a mapped list in entity
public class MovieEntity {
...
@OneToMany(mappedBy = "movie", cascade = CascadeType.ALL)
private Set<MovieOtherTitle> otherTitles;
...
}
When adding an entity to this list, the object should be automatically assigned an ID
movie.getOtherTitles().add(movieOtherTitle);
idsToAdd.add(Iterables.getLast(movie.getOtherTitles()).getId());
https://zapodaj.net/ac2bf2eccf8bf.png.html
However, it turns out that the entity does not receive ID. Why?