Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2CA018356 for ; Thu, 17 Mar 2016 14:13:27 +0000 (UTC) Received: (qmail 63315 invoked by uid 500); 17 Mar 2016 14:13:27 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 63283 invoked by uid 500); 17 Mar 2016 14:13:27 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 63271 invoked by uid 99); 17 Mar 2016 14:13:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2016 14:13:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A37191804AF for ; Thu, 17 Mar 2016 14:13:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RT0FZh3GmFZd for ; Thu, 17 Mar 2016 14:13:24 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id B3A0C5F23B for ; Thu, 17 Mar 2016 14:13:23 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id ts10so85074497obc.1 for ; Thu, 17 Mar 2016 07:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ANwKZzLwcRS3OUwp7ItXc3CwokNQs1ZBmOD9GQ65ZsU=; b=WAUZ0oXn9+SJfPRrxWVlbvXEocLMdbM5U4VTYIa+PlZzWJa1ZlArDlIlfrFSiGB5+v qgLxkfJR0KLCAzE1uplAiLABrXra0PLC8PTG6Kfw6/u5ldfJaBOLEd9GBMS38BzduNly LjhH1J8rbdKUNhq/YdZf3uLVH+5MB9iyU6GZKRzDti/CS9+OHbq7Wy1PE7fWdUcmhpeL dOrqap0U+LryB5KAEVft1MkyOCBQyS+2UVZesJylJWvODuLGG80U0CijqlGIWg4U+vvW jAsIMQgoN0/20Yp9rhNaXhD+5Wm+z0gxKzIZbNf2nZlX7ABgMJxGZhigGKmPuecZPhMO BiUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ANwKZzLwcRS3OUwp7ItXc3CwokNQs1ZBmOD9GQ65ZsU=; b=ShDI0+d+AgCfIqo8CQkHw5qcM+dKZG8CQUW+S+I9xs6SUTopz6E6KD7zer+h1NOWWY xgwOuvVuumohiW4kZZKDsWYdYv/5PO//ot9DG7kU8/O9CTjmnlFxRvmn8y5nVOltQ8VD 2HAZwMmOUpX27iHH95ECdE6vncgkPC6Rrbj/uiXtF1ushGF3d0KEM1uS8J5vZzoLfdyl PABnhwQsECR25l7l3w8fUeVy4kpsadSvKCJhFMJRRd6WIsJBKDvCRWiR9hehLv9mNiAZ UOBGUIr/4ijQ24KdE9PbeqbiET6z0R3/lFcIQNEPmn5hdtHUi6PF9jPd/oO2yXurCDxU Ba7A== X-Gm-Message-State: AD7BkJIdcTCuJkRZikd/e1mY+ooruBXg9BxGt5iZ30shYbGDZ+TMF4opeUef5bdy6Kg40yc//5hARv1tAzjynQ== X-Received: by 10.60.227.197 with SMTP id sc5mr2916068oec.2.1458223996261; Thu, 17 Mar 2016 07:13:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.46.139 with HTTP; Thu, 17 Mar 2016 07:12:46 -0700 (PDT) In-Reply-To: <2c53ae3a66ace4e5abbbc481a0df9383@xsinet.co.za> References: <2c53ae3a66ace4e5abbbc481a0df9383@xsinet.co.za> From: Michael Gentry Date: Thu, 17 Mar 2016 10:12:46 -0400 Message-ID: Subject: Re: Tracking down a Runtime Relationship - Cayenne 3.1 To: Cayenne Users Content-Type: multipart/alternative; boundary=001a11368b884cdd18052e3f3bf4 --001a11368b884cdd18052e3f3bf4 Content-Type: text/plain; charset=UTF-8 Hi Jurgen, Maybe you are seeing something different than me? When I have logging turned on, I see things like: org.apache.cayenne.map.EntityResolver added runtime complimentary DbRelationship from s_budget_years to p_line_items ... org.apache.cayenne.map.EntityResolver added runtime complimentary ObjRelationship from BudgetYears to LineItem It doesn't specify the relationship name, though. mrg On Thu, Mar 17, 2016 at 9:30 AM, wrote: > > > Hi Frank > > Cayenne logs the runtime relationships it generates when it loads the > model into memory. > > So if you look in the log which it also sends to System.err and search > for "runtimeRelationship725" then you will be able to see which entity > it's associated with. At least then he'll have a clue as where to begin > looking. > > Regards > > Jurgen > > On 2016-03-17 15:02, Frank Herrmann wrote: > > > Thanks. I passed this along to the developer. We are using version 3.1. > > > > On Wed, Mar 16, 2016 at 6:29 PM, Michael Gentry > > wrote: > > Hi Frank, I don't have any handy code to do this at the moment, but the > approach I would take is to write a utility method to dump the model's > source/destination relationship information immediately after loading the > model into memory. Then, when you get the validation exception, you can > reference that data dump for assistance. mrg PS. What version of Cayenne? > On Wed, Mar 16, 2016 at 3:12 PM, Frank Herrmann < > frank.herrmann@modernizingmedicine.com> wrote: Hello all, We have a > developer here that recently asked for my help and told him I'd reach out. > He is getting a validation failure error on a runtime relationship > (specifically runtimeRelationship725). As these are created during runtime, > he is setting a break point in the code at the commit to try and figure out > what object this runtime relationship is attached to. My question is, is > there an easy way to pinpoint what object this relationship is attached to, > or what relationship it is reversing so he can troubleshoot the > validation error? Thanks, -Frank -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 > x1563 E: frank.herrmann@modmed.com [image: [ Modernizing Medicine ]] < > http://www.modmed.com/ [1]> [image: [ Facebook ]] < > http://www.facebook.com/modernizingmedicine [2]> [image: [ LinkedIn ]] < > http://www.linkedin.com/company/modernizing-medicine/ [3]> [image: [ > YouTube ]] [image: > [ Twitter ]] [image: [ Blog ]] < > http://www.modmed.com/BlogBeyondEMR [6]> [image: [ Instagram ]] < > http://instagram.com/modernizing_medicine [7]> > > -- > FRANK HERRMANN > SOFTWARE ENGINEER > > T: 561-880-2998 x1563 > > E: frank.herrmann@modmed.com > > [image: [ Modernizing Medicine ]] > [image: [ Facebook ]] > [image: > [ LinkedIn ]] [3]> [image: > [ YouTube ]] > [image: [ > Twitter ]] [image: [ Blog ]] > [image: [ Instagram ]] > > > > > Links: > ------ > [1] http://www.modmed.com/ > [2] http://www.facebook.com/modernizingmedicine > [3] http://www.linkedin.com/company/modernizing-medicine/ > [4] http://www.youtube.com/user/modernizingmedicine > [5] https://twitter.com/modmed_EMA > [6] http://www.modmed.com/BlogBeyondEMR > [7] http://instagram.com/modernizing_medicine > --001a11368b884cdd18052e3f3bf4--