I have a problem when generating persistence by using hibernate.
Here is a screenshot of my database schema, person has a foreign key which is dept's primary key, person and dept have a N-1 relationship.
This is my import database schema interface:
Here is the generated Person class:
It uses deptId to reference Dept, and it does not generate the ManyToOne and JoinColumn annotation. How do I fix the problem? If it uses ManyToOne the Dept referenced here should be the Dept's object. Any settings I did wrong in the import database schema interface?