Re: MIssing foreign key on children - except on those of last parent added to db


Trond Arild Lode Tobiassen Heidelberg
 

On Tue, Dec 5, 2017 at 02:19 am, Trond Arild Lode Tobiassen Heidelberg wrote:

changed form this:
@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "MESSAGE_ID", nullable = true, unique = false, updatable = false)
protected List<AbstractHeaderField<?>> sipHeadersList;
To this:
@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "MESSAGE_ID", nullable = true, unique = false, updatable = true)
protected List<AbstractHeaderField<?>> sipHeadersList;

to help allow update of rows with the foreign key. But alas in vain.

Join glassfish@javaee.groups.io to automatically receive all group messages.