首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >JDL: UndeclaredEntityException

JDL: UndeclaredEntityException
EN

Stack Overflow用户
提问于 2018-06-12 12:53:02
回答 1查看 60关注 0票数 1

我正在用jdl对我的数据库进行原型化,我喜欢它的简单性。问题是文档有点轻,我得到了一个错误:UndeclaredEntityException: In the relationship between Room and Pictures, Pictures is not declared.

下面是代码:

代码语言:javascript
复制
...

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},
    ....
}

我不知道这意味着什么。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-12 13:00:39

这就是问题所在。

代码语言:javascript
复制
relationship OneToMany {
    Room to Pictures{RoomId},
    ....
}

Pictures更改为Picture

此外,请遵循github关于这一问题的以下帖子:

https://github.com/jhipster/jhipster-uml/issues/172

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50817736

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档