Goal : I want to have importJobId in ImportJob as foreign key for id of allocation table, such that when we have importJobId then and then only we can have id in allocation
ImportJob.hbm.xml
using this one add insert = false to importjobid like bellow:
insert = false