8000 Release 0.3.0 · aselab/scala-activerecord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0.3.0

Compare
Choose a tag to compare
@y-yoshinoya y-yoshinoya released this 10 Sep 09:52
· 133 commits to master since this release

Breaking changes

The following functions have been unavailable by the multi-schema support:

  • com.github.aselab.activerecord.dsl#transaction
  • com.github.aselab.activerecord.dsl#inTransaction

Please use the methods of ActiveRecordCompanion instead.

code sample:

package models

import com.github.aselab.activerecord._
import com.github.aselab.activerecord.dsl._

case class Person(name: String, age: Int) extends ActiveRecord

object Person extends ActiveRecordCompanion[Person]

...

// using inTransaction
object App extends App {
  Person.inTransaction {
    Person("person1", 10).save
  }
}
  • Set the sequence name of autoincrement in PostgreSQL by default (#42)

New features and bug fixes

  • Added support for Scala 2.11 (drop support for Scala 2.9.x)
  • Added support for multiple schemas
  • Added BoneCP configuration settings (MaxConnectionAge, IdleMaxAge, IdleConnectionTestPeriod) (#50, #53)
  • Required validator now treats Option fields (#44)
  • Added ability to remove one record from CollectionAssociation (#41)
  • Implemented dynamic Relation#orderBy (#40)
  • Fixed a bug for assign empty value in optional field (#34)
  • Added MSSQL support (#38)
  • Added DB2 support
  • Added ActiveModel
  • Added sbt-plugins (play2, scalatra)
  • Added factory methods for test

all changes

0