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 E30E0200B53 for ; Tue, 12 Jul 2016 23:42:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E1AD8160A56; Tue, 12 Jul 2016 21:42:49 +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 0DEC2160A53 for ; Tue, 12 Jul 2016 23:42:48 +0200 (CEST) Received: (qmail 2290 invoked by uid 500); 12 Jul 2016 21:42:48 -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 2278 invoked by uid 99); 12 Jul 2016 21:42:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 21:42:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7F62D1A57F0 for ; Tue, 12 Jul 2016 21:42:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ZxC0WTg8J_Po for ; Tue, 12 Jul 2016 21:42:45 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 745925FB36 for ; Tue, 12 Jul 2016 21:42:45 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id o67so27009320qke.1 for ; Tue, 12 Jul 2016 14:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:subject:message-id:date :references:in-reply-to:to; bh=YzRmitJw1YHdFFktsgF4B1ZzwZp2aos1tJEAuyFNjV0=; b=aDW/EFUwU2ujtDETSHFPCKlWEykjmiv+dLcBIIfyQIMscsaf1bPmE3javM7vJC+6Gh l4jccXfofw0bSBwBTJB7gaGneQ85v4UzWsTqXRNwin7nl41VLPgHc3dm9QrDsK4oFKmx BtNMDCfgV5RGxZ6bzQ2z/FMaoVyuR9oyojjcl0x9vq6RK/L3Npzj4bCgQ2umWzRYc06y /t1JY65pryGAKADUksWHDU60zk09BS//0fYeFVYb/LR1X3cNQfkf2pg71yJWLQ5PrWzU g3/OrItfMU8vSZgYzwJnpkPU7OgUrOaVBbsaJ6ODefqXzUABFPyoRs5a25B7nv9FEqEP TxUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:references:in-reply-to:to; bh=YzRmitJw1YHdFFktsgF4B1ZzwZp2aos1tJEAuyFNjV0=; b=IkuieZLKymtVzET5nq05heV2GR+83FBJiQdPWnfSq+MJZT/RcrhZ6Ok3znzVEFQWtl daCAq56JTHLo7ERJ4yP6HVr0CRX3iNMRguiS7k+tXwDlO8U7DxmuK20rmuF+qgewsv7Q W6oyLtwkmP7I3IqVmexQ4zdB4d8B3VZpgMzQsTJA3oohaKYi2OOtIOmRsm+8+aHyzzWi wdDeBEyjlGHxymO5fYuxg0Ur1yQ11k36Ix9P1RimXD6x6seRT1YXHNKWR1OkHszuKR44 POMh5XPQ1C351aT8d49KxH9HDV2v0KNuQATr/y9slliVlW1ozyfwXUbE83N5TUjSMm7p 0hlA== X-Gm-Message-State: ALyK8tIGw9v66t0EWuS710B4ib41rcOrY7V6SioqXJXbr1dTMl+wSR67n7Qwpv2NcsD3JA== X-Received: by 10.55.78.146 with SMTP id c140mr6230829qkb.48.1468359764307; Tue, 12 Jul 2016 14:42:44 -0700 (PDT) Received: from [10.51.232.145] (nyhq-br01.nytimes.com. [170.149.100.10]) by smtp.gmail.com with ESMTPSA id t36sm918889qtd.3.2016.07.12.14.42.43 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jul 2016 14:42:43 -0700 (PDT) From: Gmail Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Reverse engineering and dates Message-Id: <238BD6E6-5EB1-44A5-BC4E-02763E001A06@gmail.com> Date: Tue, 12 Jul 2016 17:42:43 -0400 References: <389760B6-868B-4158-B407-EDD79ECFCCFB@nytimes.com> <7FA56FF0-4105-4148-9B08-D6FF43ECC785@objectstyle.org> In-Reply-To: To: user@cayenne.apache.org X-Mailer: iPhone Mail (13F69) archived-at: Tue, 12 Jul 2016 21:42:50 -0000 Does that mean it's possible now but undocumented or that the capability nee= ds to be implemented using these new features?=20 Tony Giaccone > On Jun 27, 2016, at 11:41 AM, Andrus Adamchik wro= te: >=20 > I completely forgot. We have the whole new (M4; poorly documented) mechani= sm for configuring tons of reverse-engineering details that provides a new p= roject file. All these settings should go there.=20 >=20 > Andrus >=20 >> On Jun 27, 2016, at 11:11 AM, Giaccone, Tony wrote: >>=20 >> Yes, I think that's fine. It's specific to the project. >>=20 >> On Sun, Jun 26, 2016 at 4:56 PM, Andrus Adamchik = >> wrote: >>=20 >>>=20 >>> Fair enough. We do need to provide reverse engineering settings. I think= >>> those may be implemented as the properties of the DataMap, like default >>> package, etc. >>>=20 >>> Andrus >>>=20 >>>> On Jun 26, 2016, at 4:47 PM, Gmail wrote: >>>>=20 >>>> There are a lot of project using something other than the traditional >>> Java Date. >>>>=20 >>>> Tony Giaccone >>>>=20 >>>>> On Jun 25, 2016, at 5:30 PM, Andrus Adamchik >>> wrote: >>>>>=20 >>>>> I wonder if instead of (in addition to) Joda preferences, we add a >>> single preference - "Java 8", and if that's on use the new Java 8 date/t= ime >>> types that were all influenced by Joda. Thoughts? >>>>>=20 >>>>> Andrus >>>>>=20 >>>>>> On Jun 22, 2016, at 2:01 PM, Anthony Giaccone < >>> anthony.giaccone@nytimes.com> wrote: >>>>>>=20 >>>>>> Yeah, >>>>>>=20 >>>>>> I have an existing schema and it=E2=80=99s something of a mess, and w= ere using >>> git, so different branches have different schemas with different >>> attributes. So I=E2=80=99m re-engineering a lot. >>>>>>=20 >>>>>> I did what you suggested the first three times but then I was like. >>> "Meh, there should be a better way=E2=80=A6.=E2=80=9D >>>>>>=20 >>>>>>=20 >>>>>> Maybe something as simple as a preferences page which specifies what >>> class to use for the basic mappings? Or maybe even easier, =E2=80=9CJod= a Time=E2=80=9D and >>> a check box. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Tony >>>>>>=20 >>>>>>=20 >>>>>> I=E2=80=99m also changing a bunch of lookup tables that curren >>>>>>=20 >>>>>>> On Jun 22, 2016, at 12:19 PM, John Huss wrote:= >>>>>>>=20 >>>>>>> If this is a one-time task, just open up the cayenne-*.map.xml file >>> in a >>>>>>> text editor and do a Find and Replace All of "java.util.Date" with >>>>>>> "org.joda.time.DateTime". >>>>>>>=20 >>>>>>>=20 >>>>>>>> On Wed, Jun 22, 2016 at 11:06 AM Tony Giaccone >>> wrote: >>>>>>>>=20 >>>>>>>> When reverse engineering a database, the java.util.Date class is >>> used in >>>>>>>> all the classes that reference timestamps. Is there a way to get >>> this to >>>>>>>> default to another class? I'd like to use Joda's >>> org.joda.time.DateTime >>>>>>>> instead. >>>>>>>>=20 >>>>>>>> Is there an easy way to swap this out when the classes get generate= d? >>>>>>>>=20 >>>>>>>>=20 >>>>>>>>=20 >>>>>>>> Tony >=20