Attributes
- Companion
- class
- Source
- Repo.scala
- Graph
-
- Supertypes
- Self type
-
Repo.type
Members list
Value members
Concrete methods
Constructs a Repo from explicit components.
Derives a Repo from E's schema with a caller-supplied ID column name and getter. The table name is derived from the schema type name using the default singular snake_case policy.
Derives a Repo from E's schema with a caller-supplied ID column name and getter. The table name is derived from the schema type name using the default singular snake_case policy.
Attributes
- Source
- Repo.scala
Derives a Repo from E's schema with an explicit table name, caller- supplied ID column name, and getter.
Derives a Repo from E's schema with an explicit table name, caller- supplied ID column name, and getter.
Attributes
- Source
- Repo.scala
Fully auto-derives a Repo by inspecting E's schema to locate the ID field using a 4-priority rule:
Fully auto-derives a Repo by inspecting E's schema to locate the ID field using a 4-priority rule:
@Modifier.idannotation on a field whose type matchesID- Unique field whose type matches
ID(previously the only strategy) - Field literally named
"id"whose type matchesID - Field named
Id(e.g.userIdfor entityUser) whose type matchesID
The ID column name respects @Modifier.rename annotations; the table name uses the default naming policy.
Fails at runtime with IllegalArgumentException if:
Eis not a record (case class)- No field can be resolved by any of the four strategies
- Multiple fields match the same priority (ambiguous
@Modifier.id)
Attributes
- Source
- Repo.scala