I am trying join two tables using compound key and have a problem there that ebean generate insert and update queries with several identical columns.
It seems that updatable and insertable not working for the case when one of columns shoud be updatable and another shouldn't:
@Entity
public class Image {
.......
@OneToOne
@JoinColumns({
@JoinColumn(name="post_id", referencedColumnName="id", updatable = true, insertable = true),
@JoinColumn(name="collect_id", referencedColumnName="collect_id", updatable = false, insertable = false)
})
private Post post;
........