play 集成squeryl ORM持久化框架
来源:互联网 发布:windows xp软件功能 编辑:程序博客网 时间:2024/05/22 00:13
The recommended version is 0.9.5-6
Supported Scala versions are 2.10.0, 2.9.2, 2.9.1, 2.9.0, 2.8.1 and 2.8.0
SBT
After having setup your project to use SBT (see how to setup SBT)
Declare the Squeryl dependency in the SBT project definiition
01
libraryDependencies ++
=
Seq(
02
"org.squeryl"
%%
"squeryl"
%
"0.9.5-6"
,
03
yourDatabaseDependency
04
)
05
06
//yourDatabaseDependency is one of the supported databases :
07
08
val
h
2
=
"com.h2database"
%
"h2"
%
"1.2.127"
09
val
mysqlDriver
=
"mysql"
%
"mysql-connector-java"
%
"5.1.10"
10
val
posgresDriver
=
"postgresql"
%
"postgresql"
%
"8.4-701.jdbc4"
11
val
msSqlDriver
=
"net.sourceforge.jtds"
%
"jtds"
%
"1.2.4"
12
val
derbyDriver
=
"org.apache.derby"
%
"derby"
%
"10.7.1.1"
Note : The Oracle driver is not available via SBT/Maven, you will have to downloaded manually.
The remaining steps are :
- Bootstrap the session factory
- Define, and initialise a schema
You should now be ready to insert, update, delete data, and of course run queries.
Manual dependency management
If you want to manage your dependencies without SBT or Maven, you will need the following jars :
- The Scala runtime jar, version 2.10.0, 2.9.2, 2.9.1 (or 2.9.0, 2.8.1, 2.8.0)
- The Squeryl jar found here
- The CGLIB cglib-nodep-2.2.jar, found here
- A JDBC driver for your database, see supported databases
0 0
- play 集成squeryl ORM持久化框架
- ORM/持久层框架
- play2.0 集成 squeryl
- play框架orm层实现
- spring集成ORM框架
- android orm持久层框架
- 持久层、持久化、ORM
- 自定义orm框架解决玩家数据持久化问题
- Play 2, Scala, postgresql and Squeryl 整合
- 持久化与ORM
- ORM和持久化
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成
- Play框架中集成Swagger
- 学习ORM框架—hibernate(三):跟踪持久化对象状态,掌握对象持久化
- (收藏)C# ORM/持久层框架
- PHP ORM-持久层框架解决方案
- PHP ORM/持久层框架解决方案
- ORM c#数据持久化
- 安卓单元测试InstrumentationTestRunner
- 算法-排序-交换排序(冒泡和快速排序)
- SpringMVC 的2个配置问题
- 【摄影】【夜景】拍摄注意事项
- js 替换反斜杠(\)
- play 集成squeryl ORM持久化框架
- ps人物换脸移花接木
- 回射客户端服务器shutdown修改版( echo client && server improved by select shutdown )
- 分享一个连接
- ios离线文档(DocSet)下载地址汇总
- STL_顺序容器、适配器、迭代器
- Newtonsoft之Utilities=>ValidationUtils
- mybatis源码分析——连接池
- QT调用打印机打印html网页及文件