Returns default table alias.
Returns default table alias.
This method is abstract and should be implemented with unique name.
override def defaultAlias = createAlias("sm")
default table alias
Extracts entity from ResultSet.
Extracts entity from ResultSet.
result set
result name
entity
Extracts entity from ResultSet.
Extracts entity from ResultSet.
Extracts entity from ResultSet.
table alias
result set
entity
Associations
Associations
AutoSession definition.
AutoSession definition.
Returns column names.
Returns connection pool.
Returns actual value from identity value.
Returns actual value from identity value.
actual value type
identity
actual value
Creates a new table alias for this mapper.
Creates a new table alias for this mapper.
alias name
alias
Creates a new join definition.
Creates a new join definition.
join type
left mapper and table alias
right mapper and table alias
join condition
join definition
Join definitions that are enabled by default.
Join definitions that are enabled by default.
Returns default scope for select queries.
Returns th default select query builder for this mapper.
Returns th default select query builder for this mapper.
select query builder
One-to-Many relationship definition.
One-to-Many relationship definition.
object Member extends RelationshipFeature[Member] { oneToMany[Group]( mapper = Group, merge = (m, c) => m.copy(company = c) ) }
Creates an extractor for this query.
Creates an extractor for this query.
sql object
belongsTo associations
hasOne associations
hasMany associations
sql object
Extracts entity with one-to-one tables.
Extracts entity with one-to-one tables.
result set
belongsTo extractors
hasOne extractors
entity
Generates auto-generated new Id.
Returns typed value from a strong parameter.
Returns typed value from a strong parameter.
field name
actual value
param type definition
typed value if exists
Returns actual value from identity value.
Returns actual value from identity value.
identity
actual value
Predicates the field name is valid.
Predicates the field name is valid.
field name
valid if true
Returns primary key name.
Returns primary key name. (default: "id")
Notice: Not a column name but field name. For example, not "first_name" but "firstName"
primary key name
Returns identity value from raw value.
Returns identity value from raw value.
identity value
Returns a select query builder that all associations are joined.
Returns a select query builder that all associations are joined.
sql object
belongsTo associations
hasOne associations
hasMany associations
select query builder
Returns select query builder object to simply fetch rows without other joined tables.
Returns select query builder object to simply fetch rows without other joined tables.
SQL builder object
Returns table name.
Expects mapper's name + "Id" by default.
Expects mapper's name + "Id" by default.
enitty type
mapper
fk name
Primary key should be Database's auto-increment value if true.
Primary key should be Database's auto-increment value if true.
Primary key generation should be done by #generateNewId if true.
Primary key generation should be done by #generateNewId if true.
Provides a code block with a table alias.
Provides a code block with a table alias.
return type
table alias name
operation
result
Provides a code block with a table alias.
Provides a code block with a table alias.
return type
operation
result
Provides a code block with the column name provider.
Provides a code block with the column name provider.
return type
operation
result
Appends join definition on runtime.
Appends join definition on runtime.
table name
self
(Since version 0.9.22) Use primaryKeyFieldName instead. This API will be removed in version 1.0.0.
Basic SkinnyMapper implementation.
entity