manytomany relation not able to save mapped id in mapping table in play framework
I am using play2.2.1 and trying to create a ManyToMany relation between Jobads and JobCategory models. My Jobads.java package models; @Entity public class Jobads extends Model { @Id public Long id; @ManyToOne public Employers employer; @ManyToMany(cascade = CascadeType.ALL) @JoinTable(name = "jobads_jobcategories") public List<Jobcategories> jobcategory; @ManyToOne public Joblocations joblocations; @Required public String jobtype; @Required public String title; @Required public String text; @Required public Long salary; @Required public String experience; @Required public String active;