kmapper
asked on
Other Issue (See related Solution)
Ok, I got the point,
But the flush will fail on the employee since there is a NOT NULL constraint on the department id :(
Have an idea?
But the flush will fail on the employee since there is a NOT NULL constraint on the department id :(
Have an idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In fact it does not even throw the EntityNotFoundException if the dept does not exists, but em.persist(emp) will fail due to a constraint violation...