Scala Play! Using anorm or ORM

a 夏天 提交于 2019-12-04 02:28:23

I think most of the arguments for anorm are listed on the corresponding page in the documentation.

For the time being I personally prefer a Scala and Play independent data access layer, thus I am using Ebean (and would be using JPA, if it was the recommended default).

Being able to use the Models without any Play-dependencies is a huge plus, in my opinion. Also Anorm does not seem to offer much database independence, since the queries are expressed in native SQL.

anorm is a meta acronym for Anorm is Not an Object Relational Mapper, hence it is not an ORM.

And therein lies the answer--it's for those of us who want to be hands-on with their SQL queries.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!