scala中的JPA表映射

时间:2017-10-06 11:41:09

标签: scala jpa playframework

在我的scala / play项目中,我想使用JPA作为持久层。但我明白了......

The major disadvantage at the time is that scala up to versions 2.7.x does not support nested annotations, so you cannot use any of the JPA annotations that represent collections of related annotations (like @JoinColumns or @NamedQueries) or have a complex structure like @SqlResultSetMapping. But you can get quite far by designing you entity classes in a way that will give you sensible table definitions with the default naming conventions.

来源:http://www.hars.de/2009/03/jpa-with-scala.html

如果是,我们如何在Play with Scala中使用JPA表映射? 非常感谢play-scala中任何带有表映射示例的链接。

除了JPA之外,除了Scala之外还有其他什么好的选择吗?

提前致谢...

0 个答案:

没有答案