Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 72506 invoked from network); 18 Feb 2010 16:01:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2010 16:01:41 -0000 Received: (qmail 40128 invoked by uid 500); 18 Feb 2010 16:01:40 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 40088 invoked by uid 500); 18 Feb 2010 16:01:40 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 40080 invoked by uid 99); 18 Feb 2010 16:01:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 16:01:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of clinton.begin@gmail.com designates 74.125.92.149 as permitted sender) Received: from [74.125.92.149] (HELO qw-out-1920.google.com) (74.125.92.149) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 16:01:30 +0000 Received: by qw-out-1920.google.com with SMTP id 4so1920074qwk.60 for ; Thu, 18 Feb 2010 08:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=cv2YX+CiN1haPZKrDr54yv0mYT7ZUoEBDGoZW1JouNE=; b=oG5HVETcH+qFXGZVlybBEsgXuxbwi85VyQnKZlC0vU3AxUaq4IyuAjEfaaXjDmwrPq EkFmIdK8GjbE5VZ4vtO7yLcSGPC1yb3NoJYEuKnGtxG0Llijrq7zB02JWgDN5lwX4jbh TGkXHgtULTZuqOuqNWMEisyJiLBPYjDE2YJzU= 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; b=CHOxgd9PmDAQ0SqWjKvINYxoq2KmNDuq8f2FLShtfyoP/vH9uklI66heQFUrseggNt s1YpJeU9YXGLwy3Z0NYuvefCVLGMGi4/tyfL87tELMMpPGtECo2YETQ4ES6KiISXvPmn sYgkOZZldC3HgP+ORp4B5bp/+44i94dwpgvuU= MIME-Version: 1.0 Received: by 10.224.27.146 with SMTP id i18mr2574511qac.12.1266508862928; Thu, 18 Feb 2010 08:01:02 -0800 (PST) In-Reply-To: <8017c6041002180405p1023d0ai94434ec054a8ad9@mail.gmail.com> References: <8017c6041002180405p1023d0ai94434ec054a8ad9@mail.gmail.com> From: Clinton Begin Date: Thu, 18 Feb 2010 09:00:40 -0700 Message-ID: <16178eb11002180800q1ffd538fl36be31eea8a735fa@mail.gmail.com> Subject: Re: @SelectKey annotation missing To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=00c09f88d38ce13771047fe2121e X-Virus-Checked: Checked by ClamAV on apache.org --00c09f88d38ce13771047fe2121e Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable I recommend entering a Jira feature request for this one. I can't recall i= f it was left out for a reason, or if we just didn't get to it yet. Clinton 2010/2/18 Ing. Jan Novotn=FD > Hello again :), > > when trying @Insert annotation I found out, that there is no mean how = to > specify primary key conciliation. Something like @SelectKey would be > necessary but such annotation doesn't exist. Does that mean, that for > annotation based approach the only way are autogenerated keys (usable onl= y > in case of few database engines) and @Option annotation with keyProperty > attribute set? > > Jan > > -- > -------------------------------------------------------------- > Ing. Jan Novotn=FD > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ > http://blog.novoj.net > My=B9lenky dne otce Fura > -------------------------------------------------------------- > --00c09f88d38ce13771047fe2121e Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable I recommend entering a Jira feature request for this one.=A0 I can't re= call if it was left out for a reason, or if we just didn't get to it ye= t.=A0

Clinton

2010/2/18 Ing. Jan = Novotn=FD <novo= tnaci@gmail.com>
Hello again :),
=A0=A0 when trying @Insert annotation I found out, that there is no m= ean how to specify primary key conciliation. Something like @SelectKey woul= d be necessary but such annotation doesn't exist. Does that mean, that = for annotation based approach the only way are autogenerated keys (usable o= nly in case of few database engines) and @Option annotation with keyPropert= y attribute set?

Jan

--
---------------= -----------------------------------------------
Ing. Jan Novotn=FD
@@= @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
http://blog.novoj.net
My=B9lenky dne otce Fura
-----------------------------------------------= ---------------

--00c09f88d38ce13771047fe2121e--