+
 新版

Play 怎么使用jar包中的model

zj49079 发布于 2016/03/21 15:27
阅读 689
收藏 0

一个项目的model包被我打成jar包,然后Build path到另外一个项目中使用,写的时候能够正常的import,但测试的时候,调用一个model的.save()方法报错:Not an entity;查了官方文档:

Comma-separated list of names of additional JPA entity classes to load. This is useful when you have additional entities that are not in themodelspackage, such as model classes in a separate JAR. For example:

org.example.model.Person, org.example.model.Organisation

但在application.conf文件中加入了,也没起作用,求大神解答

补充:用的play-1.2.7


加载中
0
有妳很满促
有妳很满促
play eclipse重新编译下呢
阿T
在dos界面下进入该项目的目录 然后play eclipse
下一页
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部