我有以下实体配置:
entity AirplaneModelSeat {
id Long,
seatNo String required
}
relationship ManyToOne {
AirplaneModelSeat{modelId(model)} to AirplaneModel
}
Run Code Online (Sandbox Code Playgroud)
此实体配置创建了这样一个表:
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| seat_no | varchar(255) | NO | | NULL | |
| model_id_id | bigint(20) | YES | MUL | NULL | |
+-------------+--------------+------+-----+---------+----------------+
Run Code Online (Sandbox Code Playgroud)
如何在JDL-Studio中为(seat_no,model_id_id)列组合应用唯一约束?
如果在JDL-Studioi中无法实现这一点,还有其他任何方法可以实现这一目标吗?
jhipster ×1