在Play的API上找不到JPA.getJPAConfig方法 [英] JPA.getJPAConfig method not found on Play's API
问题描述
我使用的是Play(v.1.2.3)的最新版本,我的系统需要从一个数据库中读取数据并将其保存到另一个数据库中.
I'm using the most recent version of Play (v.1.2.3) and my system need to read data from one database and persist it to another one.
我在Play文档中发现有一个名为play.db.JPA.getJPAConfig()的方法可以完成此工作(我需要在源数据库中进行本机sql查询),但是我没有在此方法中找到此方法JPA类.
I found on Play documentation there's a method called play.db.JPA.getJPAConfig() to do this job (I'll need to make native sql queries at the source database), but I'm not finding this method in the JPA class.
我使用的版本是否错误,或者该方法是否在文档未说明的其他类中使用?
Am I using a wrong version or is this method placed at other class the documentation doesn't say?
最诚挚的问候, 雷克斯
Best regards, Rex
推荐答案
打包1.2.3发行版时,泄漏了1.3(主)分支中的某些文档.此文档错误现在应在即将到来的1.2.4中修复.释放.
When packing the 1.2.3 release some documentation from the 1.3 (master) branch leaked in. This documentation-error should be fixed now in the upcoming 1.2.4 release.
这篇关于在Play的API上找不到JPA.getJPAConfig方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!