> My currently remaining problem is: how do I obtain a key from an object? ok, got it. It's in the generated code, obviously: ::odb::access::object_traits<MyType>::id(myobj) thanks, Chris