Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 20546 invoked from network); 10 Feb 2011 22:10:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 22:10:10 -0000 Received: (qmail 78851 invoked by uid 500); 10 Feb 2011 22:10:10 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 78813 invoked by uid 500); 10 Feb 2011 22:10:09 -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 78805 invoked by uid 99); 10 Feb 2011 22:10:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 22:10:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msabo@buk.cvut.cz designates 147.32.104.6 as permitted sender) Received: from [147.32.104.6] (HELO sekvoj.buk.cvut.cz) (147.32.104.6) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 22:10:02 +0000 Received: from localhost (localhost [127.0.0.1]) by sekvoj.buk.cvut.cz (Postfix) with ESMTP id F05E29BA73 for ; Thu, 10 Feb 2011 23:09:17 +0100 (CET) Received: from sekvoj.buk.cvut.cz ([127.0.0.1]) by localhost (mail.buk.cvut.cz [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 25382-06 for ; Thu, 10 Feb 2011 23:08:59 +0100 (CET) Received: from [147.32.105.22] (antioch.buk.cvut.cz [147.32.105.22]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by sekvoj.buk.cvut.cz (Postfix) with ESMTPS id 8DF569B6B8 for ; Thu, 10 Feb 2011 23:08:46 +0100 (CET) Message-ID: <4D5461E0.30609@buk.cvut.cz> Date: Thu, 10 Feb 2011 23:08:32 +0100 From: =?UTF-8?B?TWFyZWsgxaBhYm8=?= Organization: Club SU CVUT Buben User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: Mapping (My)SQL function References: <4D504ADE.6010302@buk.cvut.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard Hi Michael, I fooled around a little bit and settled down with extended type implementation for Inet4Address. Should anyone want to see the code I can post it. Regards, marek On 02/09/2011 03:30 PM, Michael Gentry wrote: > Hi Marek, > > I'd probably just wrap it in utility methods, but I tend to take the > simple way out. Like Andrus, I'd be curious to know if you find a > different way. > > Thanks, > > mrg > > > On Mon, Feb 7, 2011 at 2:41 PM, Marek Šabo wrote: >> Hi, >> >> I would like to ask for advice, what would be a good way to get outcome of >> (my)sql functions in cayenne. Is there any other way than calling it from >> template queries? E.g. would it be possible to map somehow >> INET_NTOA(ipAddrColumn) to a virtual column which would be accessible as >> string representation in the object model? >> >> Thanks, >> >> -- >> Marek Šabo >> >> >> -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul021@gmail.com