[OS-JIRA] Created: (WOL-1024) Class names or value types do not match

From: JIRA (Atli)
Date: Wed Jun 10 2009 - 10:27:17 EDT

  • Next message: Mike Schrag: "Re: Eclipse 3.5 errors, where to report?"

    Class names or value types do not match
    ---------------------------------------

                     Key: WOL-1024
                     URL: http://issues.objectstyle.org/jira/browse/WOL-1024
                 Project: WOProject/WOLips
              Issue Type: Bug
                Reporter: Atli Páll Hafsteinsson

    I have a strange problem with me EO model, I have a one-to-many
    relationship between two entities on an integer key, the key is set
    to:
    * External type: int
    * class: java.lang.Integer
    * Data type: Integer - Integer i
    in the EO modeler in both the entities (this is an MSSQL server).
    However when running the app I get:

    "The attribute nid in Inadilar (java.lang.Integer, i) is a foreign key
    to nid in Inskyrsla (java.lang.Number, i) but their class names or
    value types do not match. If this is actually OK, you can set
    er.extensions.ERXModelGroup.Inadilar.nid.ignoreTypeMismatch=true in
    your Properties file."

    I found this strange as it used to work untill I added an attribute
    and another relationship to one of the entities. Looking at the plist
    file for the entities I notice that one of them has the key attribute
    defined as:

    {
               columnName = NID;
               externalType = int;
               name = nid;
               valueClassName = NSNumber;
               valueType = i;
           },

    but the other has:

    {
               className = "java.lang.Integer";
               columnName = NID;
               externalType = int;
               name = nid;
               valueType = i;
           },

    The one with the valueClassName = NSNumber; is the one I changed and
    checking the svn shows that prior to the change it had className =
    "java.lang.Integer";

    I am running the lates wolips and wonder but there few months since I
    originally created this model.

    What I find strange is that EO modeler displays these keys as
    identical but I still get the "Class names or value types do not
    match" error.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Wed Jun 10 2009 - 10:28:05 EDT