[odb-users] How do I best code/define FKs (C++) for Read/Write?
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Mon Oct 22 07:28:07 EDT 2018
    
    
  
ramin d <ramindeh at gmail.com> writes:
> my newbie question is: how are Foreign Keys best defined in code (C++)
> for reading and writing/inserts?
In ODB foreign keys are modeled with object pointers. See Chapter 6,
"Relationships" in the ODB manual.
> Identifying = PK/ID is used as FK
> non-identifying = Candidate keys are used as FK
> 
> Should identifying FKs be coded different from non-identifying FKs?
I don't understand what you mean by identifying/non-identifying
foreign keys.
> The available documentation of ODB is confusing to me.
Unfortunately, that's the best we've got.
    
    
More information about the odb-users
mailing list