The only information I could find relating to KeyedEntity was:
Objects that extend KeyedEntity[K] where K is a numeric type will have their id field assigned their newly created primary key value (the mechanism for generating keys is specific to each DatabaseAdaptor).
How does this apply when my keyed object is immutable? Then isn't it impossible for my object to have its id field assigned to a newly created primary key value?
I assume I am supposed to override the abstract id method inside KeyedEntity on my object in order to return the key of my object. But how does Squeryl find out which field to use as the key when it's writing to the database?
I'm using Squeryl 9.5 if it matters. I can't find much documentation on these issues.