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 72D2D200B26 for ; Mon, 27 Jun 2016 17:41:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 716E6160A5B; Mon, 27 Jun 2016 15:41:08 +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 BBA1C160A54 for ; Mon, 27 Jun 2016 17:41:07 +0200 (CEST) Received: (qmail 56154 invoked by uid 500); 27 Jun 2016 15:41:06 -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 56140 invoked by uid 99); 27 Jun 2016 15:41:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2016 15:41:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 09194181250 for ; Mon, 27 Jun 2016 15:41:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=objectstyle.org header.b=FE+nd9Zl; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=SCcN1BMM Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4XPRE-zxc3RM for ; Mon, 27 Jun 2016 15:41:03 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 98B8A5FAC4 for ; Mon, 27 Jun 2016 15:41:03 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 42B6C20CBB for ; Mon, 27 Jun 2016 11:41:03 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 27 Jun 2016 11:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=objectstyle.org; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=peR62mexAv56/a//p53Klcor8+Y=; b=FE+nd9 Zl4w8AimCgX3JaPJxLb9McQ8WfgfnCD+7T/Zt2B0xdf2P/NZpMv5V84r+Q7Gnw7R fPs2IUOkUAD/2MdASawtFx8mF6MK4fTHthiwTzM5hsKN0lOzpVNfoS2MAF1L/0dJ 6jQCq6Inp4RmdPWt7vjWq8P+RP/U18joSH2M0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=peR62mexAv56/a/ /p53Klcor8+Y=; b=SCcN1BMMR+SDM0MUA7aUOtbfouCDBkSlR1WZbQKSihzeDgX vf/Zfh/oprYKl2tky3BWOR/lK0BXQn6Ac/reEQzNHCCpnfht3145i173YW+xRIdn EXOq9pRR+26VYd0BR2akHk/XO7x61JwlyKBQ8eynjC8JaLdcdhRkszswfORc= X-Sasl-enc: 8/kPCTVFJh4Dwc6JVzoWVjDM/JLDJgoagOom93KRHl95 1467042062 Received: from [10.255.238.33] (unknown [206.47.208.50]) by mail.messagingengine.com (Postfix) with ESMTPA id E255DCCDB9 for ; Mon, 27 Jun 2016 11:41:02 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Reverse engineering and dates From: Andrus Adamchik In-Reply-To: Date: Mon, 27 Jun 2016 11:41:03 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <389760B6-868B-4158-B407-EDD79ECFCCFB@nytimes.com> <7FA56FF0-4105-4148-9B08-D6FF43ECC785@objectstyle.org> To: user@cayenne.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Mon, 27 Jun 2016 15:41:08 -0000 I completely forgot. We have the whole new (M4; poorly documented) = mechanism for configuring tons of reverse-engineering details that = provides a new project file. All these settings should go there.=20 Andrus > 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/time >> 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 were 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=9CJo= da 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 = generated? >>>>>>>=20 >>>>>>>=20 >>>>>>>=20 >>>>>>> Tony >>>>=20 >>=20 >>=20