Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 91993 invoked from network); 31 Jul 2010 15:32:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Jul 2010 15:32:15 -0000 Received: (qmail 51848 invoked by uid 500); 31 Jul 2010 15:32:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51724 invoked by uid 500); 31 Jul 2010 15:32:12 -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 51716 invoked by uid 99); 31 Jul 2010 15:32:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jul 2010 15:32:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael.widmann@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jul 2010 15:32:06 +0000 Received: by bwz7 with SMTP id 7so1464580bwz.31 for ; Sat, 31 Jul 2010 08:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=mW7y3Qsk4RokaIEf/xVlzryD1iv3dhcLL74cD1cEa+U=; b=p88SNYiEe+PvYZBsZOwSkHqI28oR+WFiiVDn6yNHaGsGnLoEqALHR3It6HzhalMz0I H00WnS+qOKiEMA8ENKFluZN+xzvtmX5NcXKGrv0yce5zmi7AreEZ2Rc4yoDQaqh6AuTJ KFz8P6aFMMtvaY2kliOvZweeb52cZWwnOtmXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ruw+c5PherfYp9eUZ831yMlZSq3AsETm7tf6mfmWwWYh7BNZvR4TscURfmcCFsFPhW z6jrrunA7ELA8lY0i42u1lO+jtJpmoGLKIkd2qrz3BMMZvASteNWu52ejs+cr2SGvGaM fptmxaDVH+Vfo1d5eYENMwx/wuC2J/EXbIWXA= MIME-Version: 1.0 Received: by 10.204.10.137 with SMTP id p9mr2303732bkp.51.1280590304867; Sat, 31 Jul 2010 08:31:44 -0700 (PDT) Received: by 10.204.32.83 with HTTP; Sat, 31 Jul 2010 08:31:44 -0700 (PDT) In-Reply-To: <8419CE074608E24FB834DB9D270C78D6E56150D24B@mail1.impetus.co.in> References: <4C53FD4B.5020707@javageneration.com> <8419CE074608E24FB834DB9D270C78D6E56150D24B@mail1.impetus.co.in> Date: Sat, 31 Jul 2010 17:31:44 +0200 Message-ID: Subject: Re: kundera: Open source JPA 1.0 compliant ORM for Cassandra From: Michael Widmann To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0003255598f63976ea048cb0aa12 X-Virus-Checked: Checked by ClamAV on apache.org --0003255598f63976ea048cb0aa12 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi could we run kundera on 0.7beta Version? Thanks for answer Michael 2010/7/31 Sanjay Sharma > Hi All, > > We are happy to announce and share a new ORM over Cassandra =96 kundera > > The project is Apache licensed and hosted at http://kundera.googlecode.co= m > > > > The project uses custom Cassandra Annotations and is fully JPA 1.0 > compliant. @ColumnFamily and @SuperColumnFamily are the main Cassandra > specific annotations. > > > > Search/Indexing is automatically included by using =93Lucandra=94 and dri= ves > the JPA-QL query support. Use of Lucandra also enables users to write Luc= ene > queries along with JPA-QL queries. > > > > As per the main author of kundera =96 Animesh -=93 The idea behind Kunder= a is > to make working with Cassandra drop-dead simple and fun. Kundera does not > reinvent the wheel by making another client library; rather it leverages = the > existing libraries and builds - on top of them - a wrap-around API to hel= p > developers do away with unnecessary boiler plate codes, and program a > neater-and-cleaner code that reduces code-complexity and improves quality= . > And above all, improves productivity.=94 > > > > The current implementation uses the versatile =93Pelops=94 library as the > underlying client API and plans are to add support for Hector and Thrift > clients as well. > > > > Here is a sample kundera Entity bean - > > @Entity > > @ColumnFamily(keyspace =3D "Keyspace1", family =3D "SimpleComment") > > public class SimpleComment { > > @Id > > private String id; > > @Column(name =3D "userId") > > private String userId; > > @Column(name =3D "comment") > > private String commentText; > > > > ...... > > } > > JPA queries are as simple as- > > Query query =3D entityManager.createQuery("SELECT c from > SimpleComment c where userId=3D=92me=92"); > > List list =3D query.getResultList(); > > > > There is already support for Spring based persistence integration like th= e > good old Spring+Hibernate integration and is as simple as this- > > "org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> > > > > > > More examples are available in kundera=92s wikiand Animesh=92s > blogs. > The spring integration example is here > > > > Regards, > > Sanjay Sharma > > iLabs, Impetus > > ------------------------------ > Impetus is sponsoring 'Hadoop India User Group Meet Up'- a technology > un-conference on July 31, 2010 at Impetus Office, Noida. The event will s= hed > light on Hadoop technology and channelized efforts to develop an active > Hadoop community. > > Click http://www.impetus.com/ to know more. Follow our updates on > www.twitter.com/impetuscalling . > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > --=20 bayoda.com - Professional Online Backup Solutions for Small and Medium Size= d Companies --0003255598f63976ea048cb0aa12 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi

could we run kundera on 0.7beta Version?

Thanks for answ= er

Michael

2010/7/31 Sanjay Sharm= a <sanj= ay.sharma@impetus.co.in>

Hi All,

We are happy to announce and share a new ORM over Cassandra =96 kunde= ra

The project is Apache licensed and hosted at http://kundera.= googlecode.com

=A0

The project uses custom Cassandra Annotations and is fully JPA 1.0 co= mpliant. @ColumnFamily and @SuperColumnFamily are the main Cassandra specif= ic annotations.

=A0

Search/Indexing is automatically included by using =93Lucandra=94 and= drives the JPA-QL query support. Use of Lucandra also enables users to wri= te Lucene queries along with JPA-QL queries.

=A0

As per the main author of kundera =96 Animesh -=93 The idea behind Ku= ndera is to make working with Cassandra drop-dead simple and fun. Kundera d= oes not reinvent the wheel by making another client library; rather it leverages the existi= ng libraries and builds - on top of them - a wrap-around API to help develo= pers do away with unnecessary boiler plate codes, and program a neater-and-= cleaner code that reduces code-complexity and improves quality. And above all, improves productivity.=94

=A0

The current implementation uses the versatile =93Pelops=94 library as= the underlying client API and plans are to add support for Hector and Thri= ft clients as well.

=A0

Here is a sample kundera Entity bean -

@Entity=A0

@ColumnFamily(keyspace =3D= "Keyspa= ce1",= family =3D= "Simple= Comment")=A0

public class= SimpleComm= ent {=A0

=A0 =A0 @Id= =A0

=A0 =A0 private String id;=A0=

=A0 =A0 @Column(name =3D= "userId= ")=A0

=A0 =A0 private String userId;=A0

=A0 =A0 @Column(name =3D= "commen= t")=A0

=A0 =A0 private String commentText;=A0=A0

=A0 =A0 ...... =A0

}

JPA queries are as simple as-

=A0 =A0 =A0 =A0 Query query =3D= entityManager.createQuery("S= ELECT c from SimpleComment c where userId=3D=92me=92");=A0

=A0 =A0 =A0 =A0 List<SimpleComment> list =3D<= /span> query.getResultList();=A0

=A0

There is already support for Spring based persistence integration lik= e the good old Spring+Hibernate integration and is as simple as this-

=A0 =A0 <bean id<= span style=3D"font-size: 10pt; color: rgb(102, 102, 0);">=3D"entityManagerFactory&= quot; class=3D"org.springframewor= k.orm.jpa.LocalContainerEntityManagerFactoryBean">=A0

=A0 =A0 =A0 =A0 <property= name=3D"persistenceUnitName= " value=3D"myPersistenceUnit&= quot;/>=A0

=A0 = =A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </bean>

More examples are available in kundera=92s wiki and Animesh=92s blogs. The spring integration example is here

=A0

Regards,

Sanjay Sharma

iLabs, Impetus



Impetus is sponsoring '= ;Hadoop India User Group Meet Up'- a technology un-conference on July 3= 1, 2010 at Impetus Office, Noida. The event will shed light on Hadoop techn= ology and channelized efforts to develop an active Hadoop community.

Click http://www.impe= tus.com/ to know more. Follow our updates on www.twitter.com/impetuscalling .


NOTE: This message may contain information that is confidential, proprietar= y, privileged or otherwise protected by law. The message is intended solely= for the named addressee. If received in error, please destroy and notify t= he sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant = and/or guarantee, that the integrity of this communication has been maintai= ned nor that the communication is free of errors, virus, interception or in= terference.



--
bayoda.com - Professional Online Backup Solutions for Small and = Medium Sized Companies
--0003255598f63976ea048cb0aa12--