All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bowlerframework.persistence.Dao.scala Maven / Gradle / Ivy

The newest version!
package org.bowlerframework.persistence

trait Dao[T <: {def id: K}, K]{
  def findById(id: K): Option[T]
  def delete(entity: T)
  def update(entity: T)
  def create(entity: T)
  def keyType: Class[K]
  def entityType: Class[T]
  def findAll(offset: Int = 0, results: Int = Integer.MAX_VALUE): List[T]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy