【发布时间】:2014-07-15 01:34:49
【问题描述】:
我正在使用现有数据库创建带有 spring roo 的项目。但是数据库逆向工程师 commond 给了我一些关于一对多映射字段的错误。
我的 spring roo 命令
database reverse engineer --schema transit --package ~.domain
Created ROOT\src\main\resources\dbre.xml
Updated ROOT\pom.xml
Undo manage ROOT\src\main\resources\META-INF\persistence.xml
Undo manage ROOT\pom.xml
Undo create ROOT\src\main\resources\dbre.xm`
Attempted to create one-to-many mapped-by field 'directionPlaces' in ' lk.transit.web.admin.domain.Direction' but type for table 'direction_place.no-schema- required' could not be found or is not database managed (not annotated with @RooDbManaged)
【问题讨论】:
标签: java mysql spring spring-roo