Scala ActiveRecord v0.3.0 Release Notes
Release Date: 2014-09-10 // over 9 years ago-
๐ฅ 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 modelsimport com.github.aselab.activerecord.\_import com.github.aselab.activerecord.dsl.\_case class Person(name: String, age: Int) extends ActiveRecordobject Person extends ActiveRecordCompanion[Person] ...// using inTransactionobject App extends App { Person.inTransaction { Person("person1", 10).save } }
- 0๏ธโฃ 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