All,
I found this Bug in the repository all the "field-id-ref=" for the foreign Key definition are minus than 1 after the reverse-db generation. Even if the field is id number 2 the field-id-ref should be 3 (Is it because it starts at 0 ?). Even the inverse foreign key are not well mapped. Anyway, I did it with the fiel-ref and everything oK.