| Having an ORM with a one-to-one mapping looking like: Booking (Entity) -> IntermediateObject (Embeddable) -> Comment (Entity) And the resulting book table has a foreign key to the comment table. When trying to insert one book with no comment and another book with a comment in the same transaction a foreign key constraint violation is thrown. |