mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
Updated DAO (markdown)
This commit is contained in:
committed by
Andrey.Tarashevskiy
parent
d3bb7e31fa
commit
baa200946c
7
DAO.md
7
DAO.md
@@ -11,7 +11,7 @@
|
||||
* [many-to-many reference](#many-to-many-reference)
|
||||
* [Advanced CRUD operations](#advanced-crud-operations)
|
||||
* [Read entity with a join to another table](#read-entity-with-a-join-to-another-table)
|
||||
|
||||
* [Auto-fill created and updated columns on entity change](#auto-fill-created-and-updated-columns-on-entity-change)
|
||||
|
||||
***
|
||||
|
||||
@@ -242,4 +242,7 @@ val query = Users.innerJoin(UserRatings).innerJoin(StarWarsFilm)
|
||||
After that all we have to do is to "wrap" a result with User entity:
|
||||
```kotlin
|
||||
val users = User.wrapRows(query).toList()
|
||||
```
|
||||
```
|
||||
|
||||
### Auto-fill created and updated columns on entity change
|
||||
See example by @PaulMuriithi [here](https://github.com/PaulMuriithi/ExposedDatesAutoFill/blob/master/src/main/kotlin/app/Models.kt).
|
||||
Reference in New Issue
Block a user