omar al kababji wrote:mmm it looks everything is perfect, i would suggest these things
1) if you just persist a department, go to the DB and check if it really saved the department in its corresponding table or not.
2) try to remove the @JoinColumn annotation in the empolyee entity.
3) if nothing works try changing the @ManyToOne and make it @OneToOne
4) if nothing still happens try to change the names of the tables.