If you can at least post the full model or the subset of the model with which you can reproduce the problem, that would be helpful already. I find it strange that the sequence is fetched after the parent table row was inserted. Am I seeing this right that your DataSourceResource does not have an id? I'm pretty sure that this is an unsupported scenario as only @MappedSuperclass is allowed to omit the id. |