Slick, how to map a query to an inheritance table model? i.e,
I have table A, B, C A is the "parent" table and B & C are "child" tables What I would like to know is how should I model this using slick so A will be abstract and B & C concrete types, and querying for a row in A will result in a B or C object
Something like JPA's InheritanceType.TABLE_PER_CLASS.
We need to do couple of things. First find a way to map the hierarchy to an table. In this case I am using a column that stores the type. But you can use some other tricks as well.
Now to determine specific sub type you can do following: