|
Re: How to set opposite in association properties [message #666680 is a reply to message #666666] |
Thu, 21 April 2011 10:36  |
Eclipse User |
|
|
|
Hi
The debugger is always strongly recommended for debugging exceptions.
You will find that
public static void setOpposite(Property property, Property
newOpposite) {
if (property.getOwningAssociation() != null) {
throw new IllegalStateException();
}
indicating that opposites can only be set in the context of a valid
association.
Regards
Ed Willink
On 21/04/2011 14:50, Ueli Brawand wrote:
> Hi all
>
> How can I set the opposite (setOpposite()) of a Property programmaticaly?
>
> When I try call prop.setOpposite(p2) then I get an IllegalStateException.
>
> Any hints?
>
> Thank you.
> Ueli
|
|
|
Powered by
FUDForum. Page generated in 0.26218 seconds