Play 怎么使用jar包中的model
时间: 2016-03-21来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
一个项目的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

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行