我正在用jdl对我的数据库进行原型化,我喜欢它的简单性。问题是文档有点轻,我得到了一个错误:UndeclaredEntityException: In the relationship between Room and Pictures, Pictures is not declared.
下面是代码:
...
entity Room {
RoomId Integer required,
RoomName String,
SquareFootage Integer,
HasRefrigirator Boolean,
PrivateBathroom Boolean
}
entity Picture {
Picture Integer required,
Url String
}
...
relationship OneToMany {
Room to Pictures{RoomId},
....
}我不知道这意味着什么。
发布于 2018-06-12 13:00:39
这就是问题所在。
relationship OneToMany {
Room to Pictures{RoomId},
....
}将Pictures更改为Picture
此外,请遵循github关于这一问题的以下帖子:
https://stackoverflow.com/questions/50817736
复制相似问题