假設我有3個實體: public class Department{
[Key]
public int DepID {get;set;}
.......
}
public class Manager{
[Key]
public int ManagerID {get;set;}
.......
}
public class Emp
我想在兩個實體之間有一個JoinTable,這兩個實體是從同一個所有者實體派生的。因此,使用@ManyToMany關係我有@JoinTable(如在下面DDL)加入這個實體時: CREATE TABLE IF NOT EXISTS `local_services`.`service_provided_on` (
`provider_id` INT UNSIGNED NOT NULL,