Return-Path: X-Original-To: apmail-db-torque-user-archive@www.apache.org Delivered-To: apmail-db-torque-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 CE9B918705 for ; Wed, 1 Jul 2015 19:27:54 +0000 (UTC) Received: (qmail 36080 invoked by uid 500); 1 Jul 2015 19:27:54 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 36043 invoked by uid 500); 1 Jul 2015 19:27:54 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 36030 invoked by uid 99); 1 Jul 2015 19:27:54 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2015 19:27:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B737CC0482 for ; Wed, 1 Jul 2015 19:27:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.263 X-Spam-Level: X-Spam-Status: No, score=0.263 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=grajagan.org Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Q25yzCz6b82f for ; Wed, 1 Jul 2015 19:27:42 +0000 (UTC) Received: from mail.grajagan.org (104-185-85-109.lightspeed.sndgca.sbcglobal.net [104.185.85.109]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 7DA0C211EF for ; Wed, 1 Jul 2015 19:27:42 +0000 (UTC) Received: from bigmac.activx.com (email.activx.com [12.157.9.19] (may be forged)) (authenticated bits=0) by mail.grajagan.org (8.14.4/8.14.4) with ESMTP id t61JRYUc007278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 1 Jul 2015 12:27:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grajagan.org; s=default; t=1435778855; bh=Yq3P5p9WVUhHcTjG7+VUVPj9cGhMLzFWB5+pmYs4mTA=; h=Subject:From:In-Reply-To:Date:References:To; b=XosTSDGRnE+ZjXIk7QFwW1ASNK2X8viFKr7pDn3M7AH8KGS31Q0l3CUUfNKKhPwER 5oV/nz586BBP5RKG3XGAIsd9RndD3B3+T1yburl49peoG8+cqwDjWFj2cofSpXKSuP ueoikFWs6JTYcyQj8X1adVGrm3HJ2n5idz3dNyTQ= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2101\)) Subject: Re: 3.3.1 to 4.0 migration From: Helge Weissig In-Reply-To: Date: Wed, 1 Jul 2015 12:27:17 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Apache Torque Users List X-Mailer: Apple Mail (2.2101) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (mail.grajagan.org [104.185.85.109]); Wed, 01 Jul 2015 12:27:35 -0700 (PDT) I forgot about the HTML filter this group uses=E2=80=A6 pardon the = crappy formatting. Here is a text-only version: Our code base is heavily invested in some of the functionality removed = from torque 4.0 and I was wondering if any one had some advice on a = migration path: 1. We make extensive use of village records obtained via = BasePeer.doSelect(Criteria), for example. Those results could probably = be considered a view of the data and I am wondering if that would be the = correct/recommended/best approach. 2. We have added our own caching implementation (configurable = via the schema definition) to the Object.vm and Peer.vm templates. I = have read through the new generator documentation and the customization = part of the OR Mapping Reference = (https://db.apache.org/torque/torque-4.0/documentation/orm-reference/custo= mizing-generation.html) but I don=E2=80=99t seem to be able to find the = relevant information to put it all together. Basically, I would like to = override one or more templates. I think I know how to specify that in an = outlet, but do I also need the control configuration in the conf = directory? The maven plugin (we use maven) has configuration parameters = for overrideConfigDir and overrideConfigPackage=E2=80=A6 do I need to = set those? 3. This is more of a maven question, maybe, alas I have the = feeling it isn=E2=80=99t actually possible to implement through it, but = is there a way to skip the code generation steps if the schema sources = have not changed? 4. I know how to configure logging for the generator, but the = switch between loglevel WARN and INFO is quite severe. Is there a way to = log at INFO level but only to a file, not to the console? We use log4j = throughout our project. Thanks very much in advance for any advice and pointers! cheers, h. > On Jul 1, 2015, at 9:51 AM, Helge Weissig wrote: >=20 > Our code base is heavily invested in some of the functionality removed = from torque 4.0 and I was wondering if any one had some advice on a = migration path: >=20 > We make extensive use of village records obtained via = BasePeer.doSelect(Criteria), for example. Those results could probably = be considered a view of the data and I am wondering if that would be the = correct/recommended/best approach. > We have added our own caching implementation (configurable via the = schema definition) to the Object.vm and Peer.vm templates. I have read = through the new generator documentation and the customization part of = the OR Mapping Reference = (https://db.apache.org/torque/torque-4.0/documentation/orm-reference/custo= mizing-generation.html = ) but I don=E2=80=99t seem to be able to find the = relevant information to put it all together. Basically, I would like to = override one or more templates. I think I know how to specify that in an = outlet, but do I also need the control configuration in the conf = directory? The maven plugin (we use maven) has configuration parameters = for overrideConfigDir and overrideConfigPackage=E2=80=A6 do I need to = set those? > This is more of a maven question, maybe, alas I have the feeling it = isn=E2=80=99t actually possible to implement through it, but is there a = way to skip the code generation steps if the schema sources have not = changed? > I know how to configure logging for the generator, but the switch = between loglevel WARN and INFO is quite severe. Is there a way to log at = INFO level but only to a file, not to the console? We use log4j = throughout our project. >=20 > Thanks very much in advance for any advice and pointers! >=20 > cheers, > h. >=20 > Helge Weissig, Ph.D. > Director, Bioinformatics & IT > ActivX Biosciences, Inc. > www.activx.com > www.kinativ.com --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org