EntityGenerationRules

slick.additions.codegen.EntityGenerationRules

Uses slick-additions-entity Lookup for foreign key fields.

Generated code requires slick-additions-entity.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def baseColumnType(currentTableMetadata: TableMetadata, all: Seq[TableMetadata]): PartialFunction[MColumn, Type]

Determine the base Scala type for a column. If the column is nullable, the type returned from this method will be wrapped in Option[...].

Determine the base Scala type for a column. If the column is nullable, the type returned from this method will be wrapped in Option[...].

Extend by overriding with orElse.

Attributes

See also
Example
 override def baseColumnType(current: TableMetadata, all: Seq[TableMetadata]) = super.baseColumnType(current,
 all).orElse { case ... } 
Definition Classes
override def extraImports: List[String]

Attributes

Definition Classes

Inherited methods

def baseColumnDefault(currentTableMetadata: TableMetadata, all: Seq[TableMetadata]): PartialFunction[MColumn, Term]

Determine the base Scala default value for a column. If the columns is nullable, the expression returned from this method will be wrapped in Some(...).

Determine the base Scala default value for a column. If the columns is nullable, the expression returned from this method will be wrapped in Some(...).

Extend by overriding with orElse.

Attributes

See also
Example
 override def baseColumnDefault(current: TableMetadata, all: Seq[TableMetadata]) =
 super.baseColumnDefault(current, all).orElse { case ... } 
Inherited from:
GenerationRules
def columnConfig(column: MColumn, currentTableMetadata: TableMetadata, all: Seq[TableMetadata]): ColumnConfig

Attributes

Inherited from:
GenerationRules
def columnConfigs(currentTableMetadata: TableMetadata, all: Seq[TableMetadata]): List[ColumnConfig]

Attributes

Inherited from:
GenerationRules
def columnNameToIdentifier(name: String): String

Attributes

Inherited from:
GenerationRules
def container: String

Attributes

Inherited from:
GenerationRules
def filePath(base: Path): Path

Attributes

Inherited from:
GenerationRules
def includeTable(table: MTable): Boolean

Attributes

Inherited from:
GenerationRules
def modelClassName(tableName: MQName): String

Attributes

Inherited from:
GenerationRules
def packageName: String

Attributes

Inherited from:
GenerationRules
def tableConfig(currentTableMetadata: TableMetadata, all: Seq[TableMetadata]): TableConfig

Attributes

Inherited from:
GenerationRules
def tableConfigs(slickProfileClass: Class[_ <: JdbcProfile])(implicit ec: ExecutionContext): DBIO[List[TableConfig]]

Attributes

Inherited from:
GenerationRules
def tableNameToIdentifier(name: MQName): String

Attributes

Inherited from:
GenerationRules