|
The same error occurs when an entity uses a composite key made up of two foreign keys. I do not see any workaround for this besides adding a separate single field id. The detailed description is available here http://stackoverflow.com/questions/6204722/hibernate-hbm2ddl-produces-nullable-field-for-primary-foreign-key.
|