http://stackoverflow.com/questions/28527001/composite-key-with-one-field-referencing-a-subclass-with-the-joined-inheritance