Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7DE1220049B for ; Mon, 14 Aug 2017 14:07:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7C69E164DF5; Mon, 14 Aug 2017 12:07:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9AE88164C76 for ; Mon, 14 Aug 2017 14:07:51 +0200 (CEST) Received: (qmail 69550 invoked by uid 500); 14 Aug 2017 12:07:50 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 69538 invoked by uid 99); 14 Aug 2017 12:07:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2017 12:07:49 +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 47FA8C0167 for ; Mon, 14 Aug 2017 12:07:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fC_3BnlI0OLx for ; Mon, 14 Aug 2017 12:07:47 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2C3945F340 for ; Mon, 14 Aug 2017 12:07:47 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id g131so81784998oic.3 for ; Mon, 14 Aug 2017 05:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6HxDb/aOzFHpaoJDBbwF4VegYP4FiuX9rjvKzKSXEVo=; b=bICB9W+1gJcXCzJyvLP3TKqvmDm3HH5Ex/vNdpbANLKeqsan2AZM5MhvkKr2hS4fm4 5g+MPIQ7BZ3pVfW2L+tciuWzmHCwYlsGLkINiHDv3BHubnjrbn7fEeYAbEPfjy8GLEAX UXisV5i9xp3/3MnZ2DyvnKYndYfzsZwL8t94onEF9OawBtPR6E7/obLA310ZK+8QwQ0y xPk3pYXLxyQIXjf9rCF+HZhun6G1sDXgfHib9RjMmVWW16cG79oh7L2SqPp+USOza5T3 fLdkwIdBxkL6mEn+r4M7Nc0ZsduAiM8IBuGDATZt8Zwyzvw3QjloYlcFa9Z+4twUjC3q p6DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6HxDb/aOzFHpaoJDBbwF4VegYP4FiuX9rjvKzKSXEVo=; b=Jjuve8FUEn9WHjZ6K0Mcc/ivuQJutSqfLJJJlP7eJnVwD7LYIv+Co6OLbZZnJNYlU+ JXgKOmTlea/iAxPRO266ytdhKqmjU65o1aMzZhB7K/VaNU/BnPsOyOOnIJAs42uL28P5 ebE1jrHWwT0DxOJnYdIeeRGmORRWbGATOBQ7n/0ych2Oc9EnFpBs+6zNNtYAbKBLP6Bv JDkPbyAbWFgxgXxyjM7kb2hYwe0Uk+yKVnJ+HjhtElKznJEzzM5GX7t/cQWjE8SPyEdi oUef0B0o+1bWt5JQXi4bls4tKOIgQNvsr7j+xbsg/5QTFcZhrTjPGOMw3Wu7F13U8j1S uhVA== X-Gm-Message-State: AHYfb5htllWFwurj0GAgchSloFz0gsgXk5O/+ivJFa20dVCRfHVw0fCC xjatz5O/8gmmUB5e2/9oq0YNiqjb3w== X-Received: by 10.202.78.200 with SMTP id c191mr28373971oib.171.1502712466337; Mon, 14 Aug 2017 05:07:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.244.82 with HTTP; Mon, 14 Aug 2017 05:07:15 -0700 (PDT) In-Reply-To: References: <92774A25-854F-4CAB-91A0-C36444386923@objectstyle.org> From: Michael Gentry Date: Mon, 14 Aug 2017 08:07:15 -0400 Message-ID: Subject: Re: Cayenne own template renderer to replace Velocity To: Cayenne Development Content-Type: multipart/alternative; boundary="001a11c160b6c177c90556b582b6" archived-at: Mon, 14 Aug 2017 12:07:52 -0000 --001a11c160b6c177c90556b582b6 Content-Type: text/plain; charset="UTF-8" Yes, but that's us kind of forcing a version of Velocity upon our users rather than them choosing the version that works with their environment. Sure, they can do dependency exclusions, etc, in the POM, but that's a slight hassle. If we choose a 'provided' scope, won't that work and be better? It'll be up to them to include the version of Velocity they want in their POM and there won't be multiple versions provided, at least not due to us. Thanks, mrg On Mon, Aug 14, 2017 at 7:35 AM, Nikita Timofeev wrote: > Cayenne-velocity module should use version of Velocity we specify, the > main point is that cayenne-server won't use it anymore. > As for explicit "compile" scope that's just copy-past, it can be > omitted as it's default anyway. > > On Mon, Aug 14, 2017 at 2:16 PM, Michael Gentry > wrote: > > Won't a compile scope pull in a version of Velocity we specify? > > > > https://github.com/apache/cayenne/pull/238/files#diff- > e286320b0b1da27d2621bf787ddd75b1R48 > > > > > > On Fri, Aug 11, 2017 at 7:23 AM, Andrus Adamchik > > > wrote: > > > >> > I'm assuming the template engine will be injectable > >> > >> Yes, and even better. With module auto-loading, you simply put your > >> template engine jar on classpath, and you get it installed > automatically. > >> This is how backwards-compatible cayenne-velocity will operate. > >> > >> Andrus > >> > >> > >> > On Aug 11, 2017, at 2:21 PM, Michael Gentry > wrote: > >> > > >> > I haven't looked into the details, but I like the idea of reducing > >> > dependencies upon external libraries, which can cause headaches with > >> > applications using Cayenne. > >> > > >> > I'm assuming the template engine will be injectable so that you can > >> choose > >> > Velocity, Freemarker, etc if you'd like? (Of course, you might have > to > >> > create a bridge to your template engine of choice, but be able to > inject > >> > that bridge into Cayenne.) > >> > > >> > Thanks, > >> > > >> > mrg > >> > > >> > > >> > On Thu, Aug 10, 2017 at 5:35 AM, Nikita Timofeev < > >> ntimofeev@objectstyle.com> > >> > wrote: > >> > > >> >> Hi all, > >> >> > >> >> I've opened a PR [1] just now with new SQLTemplateProcessor > >> >> implementation based on new Cayenne own parser (instead of Velocity). > >> >> > >> >> It doesn't support all features of Velocity but it's enough to > >> >> seamlessly replace Velocity in all core and test code in Cayenne, > plus > >> >> it's faster (up to x15 in case of cache hit) and should have less > >> >> memory footprint (though I've only checked speed and memory is my > >> >> guess as new parser smaller and have no runtime). > >> >> > >> >> Plus cayenne-server now free of velocity and commons-lang > >> >> dependencies, next step will be removing of commons-collections (it > >> >> will be the last one). > >> >> > >> >> VelocitySQLTemplateProcessor now comes in optional auto-loaded module > >> >> (cayenne-velocity), so if you relied on some advanced features of > >> >> Velocity in your SQLTemplates you still can use it. And Velocity is > >> >> still used for cgen templates. > >> >> > >> >> See PR [1] and Jira ticket [2] for details. > >> >> > >> >> Any thoughts or concerns? > >> >> > >> >> [1] https://github.com/apache/cayenne/pull/238 > >> >> [2] https://issues.apache.org/jira/browse/CAY-2345 > >> >> > >> >> -- > >> >> Best regards, > >> >> Nikita Timofeev > >> >> > >> > >> > > > > -- > Best regards, > Nikita Timofeev > --001a11c160b6c177c90556b582b6--