I am having the issue of how to insert a new record with foreign key. I have read some question or stackover flow and JPA documentation. it is how to map 2 tables together.<