So you're not talking about a compound fk? I suppose you could try this
addRelation(name1, new DBRelation.DBReference[] { ref1 });
addRelation(name2, new DBRelation.DBReference[] { ref2 });
That way you can name the relation yourself.
(I have not tested this)
Cheers,
Francis
On 25 July 2012 23:27, Joel Becker <[email protected]> wrote:
> Hi,
>
> I have a table that has two FKs that both point to the same other table.
> When I make the second call to addRelation(), I get the exception:
> "ItemExistsException: The element streets_directional__FK already exists."
>
> How can I make this work?
>
> Thanks,
> Joel
>