I had successfully written my first master child example with hibernate. After few days I took it again and upgraded some libraries. No sure what did I do but I could never
Here you have used native and assigning value to the primary key, in native primary key is auto generated.
Hence the issue is coming.