Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 4EB3211818 for ; Mon, 9 Jun 2014 02:05:40 +0000 (UTC) Received: (qmail 46355 invoked by uid 500); 9 Jun 2014 02:05:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 46310 invoked by uid 500); 9 Jun 2014 02:05:37 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 46302 invoked by uid 99); 9 Jun 2014 02:05:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 02:05:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of colpclark@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 02:05:34 +0000 Received: by mail-ob0-f172.google.com with SMTP id uy5so3337378obc.3 for ; Sun, 08 Jun 2014 19:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=gFjmbDq5kVrcU1NQfHXg0i4p5296rNwngiNbgn3dZb8=; b=bQhELb9HXYO0wEZz87/qe0UwLd3E1zU+Xv+r2B+WyOx7Zf0ru7ZFVUmUHZvo55TQR5 G8P8xYFjvCIe7NdpKK63ZNzpYxVRZbn7Oe4IYT0sLvNFiL7ykgWG9DpeJD3YXugVrj+6 +v3iJEQ16i6wrIgfLtgxcQ+lJnixHJWnMDyuraxbE7TqCxzInniK2/52jfMHkl8jNvAB XzLeJLnNAa02uiQvD5311WLVePfV3r98F1ysbDLsL+aHh70gu70X7AmNWnsONw91iL4B l1QtYfAV6tdx7YrpdKwYxz/4YiElsnIWo3m7FrhsNBr9ZIV2F/8cxcwsyQs/Q2N3vU4k X7fA== X-Received: by 10.182.87.73 with SMTP id v9mr5061307obz.25.1402279509779; Sun, 08 Jun 2014 19:05:09 -0700 (PDT) Received: from [10.182.156.88] (98.sub-70-197-225.myvzw.com. [70.197.225.98]) by mx.google.com with ESMTPSA id x14sm33596529obp.19.2014.06.08.19.05.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Jun 2014 19:05:08 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <3D39A5C4-436A-4ACC-8485-9996253C6059@gmail.com> Cc: Jeff Genender X-Mailer: iPhone Mail (11D201) From: Colin Subject: Re: Object mapper for CQL Date: Sun, 8 Jun 2014 21:05:06 -0500 To: "user@cassandra.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org I would check out spring Cassandra-most of the java drivers out there for Ca= ssandra offer very little over the new 2. driver from Datastax. Or just use= the java driver 2. as is. There's even a query builder light fluent DSL if you don't like cql. Based u= pon your use case description so far, I don't think you need to get too funk= y with your data access layer. Whatever you do, make sure the driver you use supports CQL 3 and the native p= rotocol. Thrift, like BOP, will most likely go away at some point in the fu= ture. -- Colin 320-221-9531 > On Jun 8, 2014, at 8:58 PM, Johan Edstrom wrote: >=20 > Kevin,=20 >=20 > We are about to release 2.0 of https://github.com/savoirtech/hecate > It is an ASL licensed library that started with Jeff Genender writing a Po= jo > library in Hector for a project we did for Ecuador (Essentially all of Ecu= ador uses this). > I extended this with Pojo Graph stuff like Collections and Composite key i= ndexing. >=20 > James Carman then took this a bit further in Cassidy with some new concept= s. > I then a while back decided to bite the bullet and my hatred of CQL and ju= st write=20 > the same thing, it started out with a very reflection and somewhat clunky i= nterface,=20 > James decided to re-write this and incorporate the learnings from Cassidy.= >=20 > - Jeff, James and I all work together. This library is already in use and h= as been=20 > in use under 30 mil account circumstances as well as quite decent loads. >=20 > What you see in trunk now under hecate-cql3 is what'll go out as 2.0, it i= s a new API,=20 > we support "single" pojo and Object graph, column modifiers, indexer and e= verything > else we could think of in a library that isn't ORM but maps data to C*. >=20 > What will be out in I think 2.0.2 is an external indexer very much like Ti= tan and=20 > possibly some more real graph (vertices) stuff. We are also looking at an S= chemaIdentifier > so that we can get back to working with dynamic columns at a decent concep= tual speed :) >=20 > /je >=20 >> On Jun 8, 2014, at 2:46 AM, DuyHai Doan wrote: >>=20 >> You can have a look at Achilles, it's using the Java Driver underneath : h= ttps://github.com/doanduyhai/Achilles >>=20 >> Le 8 juin 2014 04:24, "Kevin Burton" a =C3=A9crit : >> Looks like the java-driver is working on an object mapper: >>=20 >> "More modules including a simple object mapper will come shortly." >> But of course I need one now =E2=80=A6=20 >> I'm curious what others are doing here. =20 >>=20 >> I don't want to pass around Row objects in my code if I can avoid it.. Id= eally I would just run a query and get back a POJO. =20 >>=20 >> Another issue is how are these POJOs generated. Are they generated from t= he schema? is the schema generated from the POJOs ? =46rom a side file? =20= >>=20 >> And granted, there are existing ORMs out there but I don't think any supp= ort CQL. >>=20 >> --=20 >>=20 >> Founder/CEO Spinn3r.com >> Location: San Francisco, CA >> Skype: burtonator >> blog: http://burtonator.wordpress.com >> =E2=80=A6 or check out my Google+ profile >>=20 >> War is peace. Freedom is slavery. Ignorance is strength. Corporations are= people. >=20