Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 96196 invoked from network); 16 Feb 2011 12:21:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2011 12:21:21 -0000 Received: (qmail 75876 invoked by uid 500); 16 Feb 2011 12:21:21 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 75776 invoked by uid 500); 16 Feb 2011 12:21:18 -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 75768 invoked by uid 99); 16 Feb 2011 12:21:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 12:21:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of grobmeier@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-iw0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 12:21:13 +0000 Received: by iwn2 with SMTP id 2so1267218iwn.16 for ; Wed, 16 Feb 2011 04:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=FpYNgqVLTyyhnfHEn2yEcZ/mrga7dKcGp5WuTSYFJzY=; b=iHrrfo7BEJ2AdA80GNYoE84j0yPTBdUJYWqrnzUGPXpobpMT6D3WVdLBQ5SmZ8xQE1 8R6zQP5pUdk9mId3ukfDDpno4VUiLJn3Asf/FYp22dVUVoi8Nxioql+8F0rJAGHIg53R ApbLPVWxilDPkW5EkVb3e8N+DmuKBJlo16yW4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=C8qL7eC2BkV1qABBY7ajz6KCKfD71tODALyN1Wi5BNsWSQ/Y20DFPFMyRweE47ULLK ez7phMolXla31rU8tTaYrJ9KMV7m0N5yo+0aQVpypEOrqTzCGh07pqpozASwwu/OdyUm CxPyPdI92afrdx986Rb5O/tV4n1DUuZetyq3I= Received: by 10.42.239.136 with SMTP id kw8mr673856icb.502.1297858852160; Wed, 16 Feb 2011 04:20:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.53.15 with HTTP; Wed, 16 Feb 2011 04:20:32 -0800 (PST) In-Reply-To: References: <4D5BBC79.2020206@buk.cvut.cz> From: Christian Grobmeier Date: Wed, 16 Feb 2011 13:20:32 +0100 Message-ID: Subject: Re: Unique Indexes with the modeller To: user@cayenne.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Also note that the underlying argument about this feature is whether Caye= nneModeler (and consequently map.xml) should include general DB admin funct= ions not relevant to the ORM. Even though back in 2005 I said "I am for add= ing more DB admin functions to the Modeler", I am still on the fence on whe= ther it is a good idea. In this particular case I guess I won't object to a= working implementation. I am very +1 on adding this feature to the modeller. Even when it may go further to standard ORM, the modeller cannot be used alone for working with cayenne. On the other hand there is no chance to prevent the loss of indexes when the db schema is regenerated. Imho I would stop when it comes to adding users to a database or re-enter passwords or something like that. Thanks for the explaination anyway > > Andrus > > On Feb 16, 2011, at 2:04 PM, Andrey Razumovsky wrote: > >> It's not supported by Cayenne, though it's a long-standing request. If >> you're willing to watch or contribute, you can follow >> https://issues.apache.org/jira/browse/CAY-204 >> >> 2011/2/16 Marek =C5=A0abo : >>> Actually I would like to know whether there is any support for this in = cm >>> because I've been appending them manually in generated schemata. >>> >>> On 02/16/2011 12:40 PM, Christian Grobmeier wrote: >>>> >>>> Hello, >>>> >>>> how can I create a unique index on a column with the modeller? >>>> Couldn't find any information even with google :-) >>>> >>>> I also could not find any info about indexing in Cayenne in general... >>>> my tables are all without an index (except my primary key, which is >>>> indexed by default). >>>> >>>> I am using Cay 3.1 + MySQL >>>> >>>> Thanks >>>> Christian >>>> >>> >>> -- >>> Marek =C5=A0abo >>> >>> >> >> >> >> -- >> Andrey >> > > --=20 http://www.grobmeier.de