Slick documentation says how to perform update operation for specific column, but doesn't contain any examples of updating Entire record.
Below is tiny example of how to do that.
Let's assume we have a mapped Table that uses a custom type Customer:
1 2 3 4 5 6 7 8 9 10 |
|
The simplest way to update the whole Customer record is calling where method on Table object and then executing update with Customer object as an argument. For example,
1 2 3 4 5 |
|
Hope you find it helpful,
This post first appeared on Programming | SysGears - Custom Software, please read the originial post: here