empire-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis De Brabandere <franci...@gmail.com>
Subject Re: addRelation for two FKs that point to the same table
Date Thu, 26 Jul 2012 13:32:28 GMT
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 <joelbecker0@gmail.com> 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
>

Mime
View raw message