Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-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 C193DD4A1 for ; Mon, 17 Sep 2012 00:11:33 +0000 (UTC) Received: (qmail 94317 invoked by uid 500); 17 Sep 2012 00:11:33 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 94208 invoked by uid 500); 17 Sep 2012 00:11:32 -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 94198 invoked by uid 99); 17 Sep 2012 00:11:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 00:11:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matero@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 00:11:26 +0000 Received: by eaah11 with SMTP id h11so3391939eaa.16 for ; Sun, 16 Sep 2012 17:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Rnvk+YlLyaY6TxyfhMUKIoUWf9zQOlnI5XkF4uxQ1hE=; b=oIGaQop6q1VF14yiADc4JjoNYVjFVcPlo7aKX+wGwikceyoXh9+r/NdfO36V8fSsV2 OSCM4a5fAsl5qBgW3EuV4z/cR2kgrGOsIb7kVlJfRfdHnnqPfwiZXabS3xggY9Iam/pL fHv5+I9YyI+9DeBeqz4BYi5OqYWPNLBycLk1MIpwnvEM57KG2vLNklM5Nbn+Cjh6liVK iR9adrfdKGb+beYN7zDbu+CKmrY/IruB8OuDkFZDVYO8k4eJ7zkul+y/eYHyALouPrsf 1hMRiyvP1zqhYWXVSPtzK56RaTmzvrWBb0UlHDD3UBXWFsZOddlncij0LQaj7D51082r kvCA== MIME-Version: 1.0 Received: by 10.14.173.9 with SMTP id u9mr11538670eel.8.1347840665149; Sun, 16 Sep 2012 17:11:05 -0700 (PDT) Received: by 10.14.180.68 with HTTP; Sun, 16 Sep 2012 17:11:05 -0700 (PDT) Date: Sun, 16 Sep 2012 21:11:05 -0300 Message-ID: Subject: Registering Extended Types From: =?UTF-8?Q?Juan_Jos=C3=A9_Gil?= To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=047d7b603d720f617a04c9da9c74 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b603d720f617a04c9da9c74 Content-Type: text/plain; charset=UTF-8 Hi, I'm trying to use 3.1M3 version and I've noted that my ExtendedType registrations aren't working anymore. I've looked at docs, but they don't seem to be update. So I had readed the unit tests at svn; but I did not understand them :( Has anynoe already solved this problem? The errors are: import org.apache.cayenne.BaseContext; import org.apache.cayenne.ObjectContext; import org.apache.cayenne.access.DataContext; import org.apache.cayenne.access.DataDomain; import org.apache.cayenne.access.DataNode; import org.apache.cayenne.conf.Configuration; ... @Before public void setupCayenne() { final DataDomain domain = Configuration.getSharedConfiguration().getDomain(); // <-- it does not know "Configuration" for (final DataNode node : domain.getDataNodes()) { node.getAdapter().getExtendedTypes().registerType(DateTimeType.INSTANCE); node.getAdapter().getExtendedTypes().registerType(LocalDateType.INSTANCE); node.getAdapter().getExtendedTypes().registerType(LocalDateTimeType.INSTANCE); node.getAdapter().getExtendedTypes().registerType(LocalTimeType.INSTANCE); } final ObjectContext context = DataContext.createDataContext(); // <-- this method doesn't exists anymore BaseContext.bindThreadObjectContext(context); } is there a sample I could reach? Best Regards Juanjo --047d7b603d720f617a04c9da9c74--