Re: Delete in Modeler

From: Eric Schneider (eri..entralparksoftware.com)
Date: Tue Jul 08 2003 - 15:14:33 EDT

  • Next message: André Luiz N Sousa: "Delete ObjEntity in Application"

    Andrus,

    I'm seeing this behavior too with the 4/30 nightly on XP. :-\

    e.

    ----- Original Message -----
    From: "Holger Hoffstätte" <holge..izards.de>
    To: <cayenne-use..bjectstyle.org>
    Sent: Tuesday, July 08, 2003 2:51 PM
    Subject: Re: Delete in Modeler

    > 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:11
    4)
    > at
    >
    org.objectstyle.cayenne.modeler.util.MapUtil.cleanObjMappings(MapUtil.java:2
    40)
    > at
    >
    org.objectstyle.cayenne.modeler.action.RemoveAction.removeDbAttribute(Remove
    Action.java:256)
    > at
    >
    org.objectstyle.cayenne.modeler.action.RemoveAction.remove(RemoveAction.java
    :129)
    > at
    >
    org.objectstyle.cayenne.modeler.action.RemoveAction.performAction(RemoveActi
    on.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 - 15:14:09 EDT