Skip to content

Releases: aselab/scala-activerecord

0.6.2

07 Oct 00:16
Compare
Choose a tag to compare

Fixed

  • Fixed for no package define schema tables

all changes

0.6.1

07 Oct 00:17
Compare
Choose a tag to compare

Fixed

  • Fixed error java.lang.AssertionError: unsafe symbol Ignore when not in JDK 14 environment

all changes

0.6.0

13 Aug 11:39
Compare
Choose a tag to compare

Breaking changes

  • Drop support for Scala 2.11.x, 2.12.x
  • Drop support for Play 2.6.x

New features

  • Scala 2.13 Support
  • Play 2.8 support
  • Scalatra 2.7 support

Changed

  • Bump library versions
  • drop generator projects

all changes

0.5.0

20 Apr 10:16
Compare
Choose a tag to compare

Breaking changes

  • Drop support for Java 8

Changed

  • Bump Scala version (2.12.3 => 2.12.8)
  • Bump library versions

all changes

0.4.0

28 Jul 08:27
Compare
Choose a tag to compare

Breaking changes

  • Drop support for Scala 2.10.x
  • Drop support for Play 2.4.x
  • Replace BoneCP with HikariCP (#47)

New features

  • Scala 2.12 support
  • Play 2.6 support
  • Added PagerSupport
  • Added nscala-time support (#16)
  • Add isEmpty and nonEmpty to Relations
  • Support Map[String, Any] value for Json serialize

Changed

  • Bump Scala version (2.11.8 => 2.11.11)
  • Bump library versions
  • Typo fixed in validation error messages
  • Added throws option for fromJson (default throws=false)

all changes

0.3.2

27 Jun 07:55
Compare
Choose a tag to compare

New features

  • Added SQLite support
  • Play 2.4 support (#71 by @knshiro)
  • Support for Single table inheritance (experimental)

Changed

  • Bump Scala version (2.11.6 => 2.11.8, 2.10.5 => 2.10.6)
  • Bump library versions

all changes

0.3.1

03 Mar 07:02
Compare
Choose a tag to compare

New features

  • Support for JSON serialization and deserialization (documentation)
  • Support for groupBy and having (documentation)
  • Support for joinning 5 tables
  • Type safety setting of model variables methods newInstance and assign (only Scala 2.11.x)

Changed

  • Type safety find methods findBy, findAllBy and findByOrCreate (only Scala 2.11.x)
  • Display for dsl#inTransaction deprecation message at compile-time
  • Form assign should be able to handle Option (#56 by @shota-kobayashi)
  • Bump Scala version (2.11.2 => 2.11.6)
  • Bump library versions

Fixed

  • Fix bug in ActiveRecordTables#cleanup on multiple schemas
  • Fix bug in ActiveRecordTables#isCreated for Oracle (#61)

all changes

0.3.0

10 Sep 09:52
Compare
Choose a tag to compare

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