EntityGenerationRules
slick.additions.codegen.EntityGenerationRules
trait EntityGenerationRules extends GenerationRules
Uses slick-additions-entity
Lookup
for foreign key fields.
Generated code requires slick-additions-entity
.
Attributes
- Graph
-
- Supertypes
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
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
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
def tableConfigs(slickProfileClass: Class[_ <: JdbcProfile])(implicit ec: ExecutionContext): DBIO[List[TableConfig]]
Attributes
- Inherited from:
- GenerationRules
Attributes
- Inherited from:
- GenerationRules
In this article