- 授权协议: BSD
- 开发语言: Scala
- 操作系统: 跨平台
- 软件首页: http://sorm-framework.org/
- 软件文档: http://sorm-framework.org/Documentation.html
- 官方下载: https://github.com/sorm/sorm
软件介绍
scala的orm框架,相比其他orm更为简洁
// Declare a model:
case class Artist( name : String, genres : Set[Genre] )
case class Genre( name : String )
// Initialize SORM, automatically generating schema:
import sorm._
object Db extends Instance(
entities = Set( Entity[Artist](), Entity[Genre]() ),
url = "jdbc:h2:mem:test"
)
// Store values in the db:
val metal = Db.save( Genre("Metal") )
val rock = Db.save( Genre("Rock") )
Db.save( Artist("Metallica", Set(metal, rock) ) )
Db.save( Artist("Dire Straits", Set(rock) ) )
// Retrieve values from the db:
// Option[Artist with Persisted]:
val metallica = Db.query[Artist].whereEqual("name", "Metallica").fetchOne()
// Stream[Artist with Persisted]:
val rockArtists = Db.query[Artist].whereEqual("genres.item.name", "Rock").fetch()
在你身边,为你设计
腾讯公司用户研究与体验设计部 / 电子工业出版社 / 2013-1 / 69.00元
设计属于所有人,也意在为所有人使用,这既是设计的价值,也是设计的责任。本书内容包括:设计理念、设计方法、用户研究、体验设计、设计流程和工具,以及团队成长与管理等方面的知识与经验分享。一起来看看 《在你身边,为你设计》 这本书的介绍吧!
