Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 35700 invoked from network); 30 Sep 2006 12:03:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2006 12:03:40 -0000 Received: (qmail 64962 invoked by uid 500); 30 Sep 2006 12:03:40 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 64949 invoked by uid 500); 30 Sep 2006 12:03:39 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 64940 invoked by uid 99); 30 Sep 2006 12:03:39 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Sep 2006 05:03:39 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=duddelfuddel@googlemail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.92.168] ([66.249.92.168:56300] helo=ug-out-1314.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 81/E4-24842-81D5E154 for ; Sat, 30 Sep 2006 05:03:38 -0700 Received: by ug-out-1314.google.com with SMTP id y2so440905uge for ; Sat, 30 Sep 2006 05:03:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=iWGTU4KUe1IpMOdTqKvpOfPS4nyobP1lSVjAx5shFPa8gfwj4r+6V+5yRPu8c8gYFkMOv4h6l8tuC2Z9fWkFeBgW0r4fgPARSelTU5xoK0Fqs4k1lGC3uQN/06mNAV/ca/ws+DXd0azagFKeyRMFZf7/Uk5R3xqvbogQ6uUvsK4= Received: by 10.66.240.12 with SMTP id n12mr828940ugh; Sat, 30 Sep 2006 05:03:33 -0700 (PDT) Received: by 10.66.236.18 with HTTP; Sat, 30 Sep 2006 05:03:33 -0700 (PDT) Message-ID: Date: Sat, 30 Sep 2006 14:03:33 +0200 From: "Juergen Saar" Sender: duddelfuddel@googlemail.com To: cayenne-user@incubator.apache.org Subject: Re: Error: same entity-name in 2 DataMaps In-Reply-To: <3821CD8F-CF5B-49C8-BC11-7ACEE98677AF@objectstyle.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29320_5277947.1159617813484" References: <3821CD8F-CF5B-49C8-BC11-7ACEE98677AF@objectstyle.org> X-Google-Sender-Auth: b2d268736688c198 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_29320_5277947.1159617813484 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, the Entities live in different DataDomains ... but the relation in the second DataDomain uses the entity-definition from the first DataDomain My workaround for the moment: I defined a synonym in database for one of the 2 entities. So the entities have no longer the same name ... 2006/9/29, Andrus Adamchik : > > Hi Juergen, > > I assume you have 2 DbEntities with the same name, mapped to > different ObjEntities (otherwise it wouldn't have worked in 1.1 > either). Actually you can work around that issue by putting > conflicting entities in two different DataDomains, as domains do not > share EntityResolvers. This of course would prevent you from using > any shared relationships... > > We can probably make it smarter in the future and qualify DbEntity > name using DataMap name internally. Worth submitting a Jira request. > > Andrus > > > On Sep 28, 2006, at 6:10 AM, Juergen Saar wrote: > > > Hi, > > > > we have two cases where we need the same entity in 2 DataMaps. > > Both have the same Structure but live in diffent databases, > > but have identical names. > > > > There is a controlled data exchange between these both entities. > > > > Till now, we used the version 1.1.4 and all worked fine. > > Now, with version 1.2.1, in the second DataMap > > relations pointing to this entity, bring back a javaclass > > from the first DataMap. > > > > Is there anything I can do? > > > > Thanx > > --- Juergen --- > > ------=_Part_29320_5277947.1159617813484--