Skip to content

Commit

Permalink
Release 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gonmarques committed Apr 28, 2021
1 parent c29b991 commit e0eb2ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -3,7 +3,7 @@
|MySQL, Oracle, DB2, PostgreSQL, Derby, H2, Hsql|Travis CI|[![Build status](https://travis-ci.org/gonmarques/slick-repo.svg?branch=master)](https://travis-ci.org/gonmarques/slick-repo)|
|SQLServer|AppVeyor|[![Build status](https://ci.appveyor.com/api/projects/status/3httes30fa1foes1/branch/master?svg=true)](https://ci.appveyor.com/project/gonmarques/slick-repo)|

[![Coverage Status](https://coveralls.io/repos/github/gonmarques/slick-repo/badge.svg?branch=master)](https://coveralls.io/github/gonmarques/slick-repo)   [![Latest Release](https://img.shields.io/badge/release-v1.5.3-007ec6.svg)](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo)   [![MIT License](https://img.shields.io/badge/license-MIT-7c39ef.svg)](http://opensource.org/licenses/MIT)
[![Coverage Status](https://coveralls.io/repos/github/gonmarques/slick-repo/badge.svg?branch=master)](https://coveralls.io/github/gonmarques/slick-repo)   [![Latest Release](https://img.shields.io/badge/release-v1.6.1-007ec6.svg)](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo)   [![MIT License](https://img.shields.io/badge/license-MIT-7c39ef.svg)](http://opensource.org/licenses/MIT)

# slick-repo

Expand All @@ -20,7 +20,7 @@ Slick Repositories is an aggregation of common database operations in ready-to-b
The library releases are available at [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo) for Scala **2.10**, **2.11**, **2.12** and **2.13**. In order to add the library as a dependency to your project:

```scala
libraryDependencies += "com.byteslounge" %% "slick-repo" % "1.5.3"
libraryDependencies += "com.byteslounge" %% "slick-repo" % "1.6.1"
```

## Introduction
Expand All @@ -32,7 +32,7 @@ case class Coffee(override val id: Option[Int], brand: String) extends Entity[Co
def withId(id: Int): Coffee = this.copy(id = Some(id))
}

class CoffeeRepository(override val driver: JdbcProfile) extends Repository[Coffee, Int](driver) {
class CoffeeRepository(override val driver: JdbcProfile) extends Repository[Coffee, Int] {

import driver.api._
val pkType = implicitly[BaseTypedType[Int]]
Expand Down Expand Up @@ -135,7 +135,7 @@ The repositories support the following common database operations:
It is possible to define custom queries or statements inside a repository. Even queries that access multiple tables:

```scala
class PersonRepository(override val driver: JdbcProfile) extends Repository[Person, Int](driver) {
class PersonRepository(override val driver: JdbcProfile) extends Repository[Person, Int] {

import driver.api._
val pkType = implicitly[BaseTypedType[Int]]
Expand Down Expand Up @@ -199,7 +199,7 @@ case class Coffee(override val id: Option[Int], brand: String, override val vers
}

class CoffeeRepository(override val driver: JdbcProfile)
extends VersionedRepository[Coffee, Int, Int](driver) {
extends VersionedRepository[Coffee, Int, Int] {

import driver.api._
val pkType = implicitly[BaseTypedType[Int]]
Expand Down Expand Up @@ -288,7 +288,7 @@ case class StringVersionedEntity(
}

class StringVersionedEntityRepository(override val driver: JdbcProfile)
extends VersionedRepository[StringVersionedEntity, Int, String](driver) {
extends VersionedRepository[StringVersionedEntity, Int, String] {
// ...
}
```
Expand All @@ -310,7 +310,7 @@ The repositories may define listeners that are invoked by the library when certa
```scala
import com.byteslounge.slickrepo.annotation.prePersist

class CoffeeRepository(override val driver: JdbcProfile) extends Repository[Coffee, Int](driver) {
class CoffeeRepository(override val driver: JdbcProfile) extends Repository[Coffee, Int] {

// ....

Expand Down Expand Up @@ -369,7 +369,7 @@ case class User(
}

abstract class PersistableRepository[T <: Persistable[T] with Entity[T, ID], ID](override val driver: JdbcProfile)
extends Repository[T, ID](driver) {
extends Repository[T, ID] {

@prePersist
private def prePersist(entity: T): T = {
Expand Down
6 changes: 5 additions & 1 deletion project/Build.scala
Expand Up @@ -52,7 +52,7 @@ object Build extends Build {

name := "slick-repo",
description := "CRUD Repositories for Slick based persistence Scala projects",
version := "1.5.4-SNAPSHOT",
version := "1.6.1",

scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.13.0", "2.12.6", "2.11.12", "2.10.7"),
Expand Down Expand Up @@ -123,6 +123,10 @@ object Build extends Build {
<name>David Poetzsch-Heffter</name>
<url>https://github.com/dpoetzsch</url>
</contributor>
<contributor>
<name>George</name>
<url>https://github.com/giannoug</url>
</contributor>
</contributors>
<scm>
<url>https://github.com/gonmarques/slick-repo.git</url>
Expand Down

0 comments on commit e0eb2ae

Please sign in to comment.