[英]play framework using slick with java
I want to start a new play framework project, and I want to use a database mapper. 我想开始一个新的游戏框架项目,并且想使用数据库映射器。 For Scala there is slick.
对于Scala来说,它很漂亮。
Can I use Slick with java as well? 我也可以在Java中使用Slick吗? Or is there a nice pendant for java?
还是有一个漂亮的Java吊坠?
The straightforward answer is no . 直接的答案是“ 否” 。 You may be using it in Scala (eg. write DAO layer in Scala) and then use that in your Java but honestly it may be too much of a hustle.
您可能在Scala中使用了它(例如,在Scala中编写了DAO层),然后在Java中使用了它,但老实说,这可能太麻烦了。
There is no straightforword alternative - you would need to use Hibernate
or Ebean
. 没有简单的替代方法-您将需要使用
Hibernate
或Ebean
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.