import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-import org.simantics.objmap.graph.annotations.meta.IsFieldRule;
+import org.simantics.objmap.graph.annotations.meta.IsMethodRule;
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
-@IsFieldRule
+@IsMethodRule
public @interface UpdateMethod {
}
if(link.type == null) {
createDomain(g, link);
}
-
- if(link.type.updateDomain(g, map, link.domainElement, link.rangeElement))
- updated.add(link.domainElement);
+ else {
+ if(link.type.updateDomain(g, map, link.domainElement, link.rangeElement))
+ updated.add(link.domainElement);
+ }
}
if (listensDomain)
updateRange(g); //FIXME: without this listening would stop.
try {
LOGGER.info("SimpleLinkType.updateRange " +
NameUtils.getSafeName(g, domainElement) + " " +
- rangeElement.toString()
+ (rangeElement.getClass().getName() + "@" + Integer.toHexString(rangeElement.hashCode()))
);
} catch(DatabaseException e) {
throw new MappingException(e);