<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What about mapping AtomicMaps into the cassandra column model?<div><br><div><div>On 3 déc. 2010, at 11:50, Manik Surtani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>So we'd need a value mapper, which users can define, to map fields to columns. &nbsp;Possibly handle relationships, aggregate objects. &nbsp;Maybe even make things easy by providing annotations so users can just annotate their value objects.</div><div><br></div>So this value mapper would effectively be reinventing JPA? &nbsp;;-)&nbsp;<div><br></div><div>Is there such a thing as JPA for Cassandra? &nbsp;Or an equivalent (of not specific to the JPA spec)?</div><div><br><div><div>On 3 Dec 2010, at 10:40, Tristan Tarrant wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Exactly.<br>Obviously in the case of a JPA cache store, the V would be an @Entity and therefore "automapped" by the persistence provider. For Cassandra this would have to be explicitly processed by a Value to Store mapper (which could come useful also with the plain JDBC store).<br>
<br>Tristan<br><br><div class="gmail_quote">On Fri, Dec 3, 2010 at 11:33, Manik Surtani <span dir="ltr">&lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Tristan,<br>
<br>
We do have an open JIRA for a JPA cache store over a RDBMS, which would map entities on to columns. &nbsp;Are you suggesting something similar?<br>
<br>
Cheers<br>
Manik<br>
<div><div></div><div class="h5"><br>
On 3 Dec 2010, at 07:58, Tristan Tarrant wrote:<br>
<br>
&gt; Dear all,<br>
&gt;<br>
&gt; after adding the key mapping functionality to the Cassandra cache store, I was thinking that it would be nice to have a similar feature for mapping values to Cassandra's columns and column families (I don't know if these concepts are familiar to you, but they roughly translate to columns in a relational database). This means that instead of putting a binary blob into the store, the data would be mapped in a more natural format. This could also come in useful for the JDBC store.<br>

&gt; This would obviously be done as part of 5.x.<br>
&gt;<br>
&gt; Ideas &amp; suggestions ?<br>
&gt;<br>
&gt; Tristan<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
--<br>
Manik Surtani<br>
<a href="mailto:manik@jboss.org">manik@jboss.org</a><br>
Lead, Infinispan<br>
Lead, JBoss Cache<br>
<a href="http://www.infinispan.org/" target="_blank">http://www.infinispan.org</a><br>
<a href="http://www.jbosscache.org/" target="_blank">http://www.jbosscache.org</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</blockquote></div><br>
_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org/">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org/">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br></div></body></html>