table : map__company__branches (company_id int, branch_id int, is_primary_branch tinyint(1)) public class company { @ManyToMany(fetch = FetchType.LAZY) ...