Re: delete rule, queries

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jun 12 2003 - 10:19:03 EDT

  • Next message: Andrus Adamchik: "Re: delete rule, queries"

    > Hi,
    > actually I have two questions:
    > first for some relations I set the delete rule in the modeller to No
    > Action, then I get the exception when I try to delte objects with that
    > relation:
    >
    > org.objectstyle.cayenne.CayenneRuntimeException: Unknown type of delete
    > rule 0
    > at
    > org.objectstyle.cayenne.access.DataContext.deleteObject(DataContext.java:603)
    > at
    > com.winterthur.cm.controller.FormulaObj.removeFormulaElement(FormulaObj.java:220)
    > ..
    >
    > I digged into the code and saw that in the sitch statement
    > there is no case for NoAction
    > so is that missing in 1b1?

    Martin,

    This was fixed already in b3. Please upgrade.

    :-)

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Jun 12 2003 - 10:19:03 EDT