This looks like a problem when Session#saveOrUpdate is used to update an entity value mapped to the joined table, and there is currently no row for that entity in the joined table yet. The exception gets thrown when the ```Session``` gets flushed. A workaround is to use Session#merge instead of Session#saveOrUpdate. |