Re: Delete in Modeler

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jul 08 2003 - 14:59:28 EDT

  • Next message: Eric Schneider: "Re: Delete in Modeler"

    Hmm... does look serious. I will work on fixing that.

    Thanks
    Andrus

    > Andrus Adamchik wrote:
    >> > I haven't seen anyone mentioning it, but when I upgraded to b4 I
    >> find I'm having trouble deleting attributes from objects in the
    >> modeler. When I select delete from the pull down or using the icon
    >> on the
    >> > toolbar, it doesn't only delete the attribute that's highlighted,
    >> the whole object gets trashed.
    >>
    >> Hmm... works for me. In fact before b4 there were things like deleted
    >> attribute would still show up in the view, etc.
    >
    > Unfortunately I can reproduce this with in CVS tree, running 1.4.2 on
    > WinXP. :(
    > Deleting a single ObjAttribute deletes the entire ObjEntity, trying to
    > delete an DbAttribute (say ARTIST->ARTIST_NAME) always results in the
    > following exception:
    >
    > org.objectstyle.cayenne.exp.ExpressionException: [v..AYENNE_VERSION@
    >..AYENNE_BUILD_DATE@] Can't resolve path component:
    > [ARTIST.ARTIST_NAME].
    > at
    > org.objectstyle.cayenne.map.Entity$PathIterator.next(Entity.java:309)
    > at
    > org.objectstyle.cayenne.map.ObjAttribute.getDbAttribute(ObjAttribute.java:114)
    > at
    > org.objectstyle.cayenne.modeler.util.MapUtil.cleanObjMappings(MapUtil.java:240)
    > at
    > org.objectstyle.cayenne.modeler.action.RemoveAction.removeDbAttribute(RemoveAction.java:256)
    > at
    > org.objectstyle.cayenne.modeler.action.RemoveAction.remove(RemoveAction.java:129)
    > at
    > org.objectstyle.cayenne.modeler.action.RemoveAction.performAction(RemoveAction.java:119)
    >
    > Unfortunately I haven't really done anything with Modeler lately or else
    > I'd caught it earlier..
    >
    > Holger



    This archive was generated by hypermail 2.0.0 : Tue Jul 08 2003 - 14:59:28 EDT