Brett Meyer commented on an issue
Hibernate ORM / Bug HHH-7946
TransientObjectException is thrown when saving an object with a many-to-one relation
The following test case:

1. Products and Categories. Products have a reference to a Category (many-to-one relation).
2. Create the categories first.
3. Create a Product and add the ID of the category just created.

The following exception is thrown:
org.hibernate.TransientObjectException: object references an unsaved transient

(see test-case Produc...