{"id":55091,"date":"2016-04-19T13:00:19","date_gmt":"2016-04-19T10:00:19","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=55091"},"modified":"2016-04-25T10:31:56","modified_gmt":"2016-04-25T07:31:56","slug":"first-steps-spring-boot-cassandra","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html","title":{"rendered":"First steps to Spring Boot Cassandra"},"content":{"rendered":"<p>If you want to start using Cassandra NoSQL database with\u00a0<a href=\"http:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/htmlsingle\/\">Spring Boot<\/a>, the best resource is likely the Cassandra samples available\u00a0<a href=\"https:\/\/github.com\/spring-projects\/spring-boot\/tree\/master\/spring-boot-samples\/spring-boot-sample-data-cassandra\">here<\/a>\u00a0and the\u00a0<a href=\"http:\/\/projects.spring.io\/spring-data-cassandra\/\">Spring data Cassandra documentation<\/a>.<\/p>\n<p>Here I will take a little more roundabout way, by actually installing Cassandra locally and running a basic test against it and I aim to develop this sample into a more comprehensive example with the next blog post.<\/p>\n<h2>Setting up a local Cassandra instance<\/h2>\n<p>Your mileage may vary, but the simplest way to get a local install of Cassandra running is to use the Cassandra cluster manager(ccm) utility, available\u00a0<a href=\"https:\/\/github.com\/pcmanus\/ccm\">here<\/a>.<\/p>\n<pre class=\"brush:java\">ccm create test -v 2.2.5 -n 3 -s<\/pre>\n<p>Or a more traditional approach may simply be to download it from the\u00a0<a href=\"http:\/\/cassandra.apache.org\/download\/\">Apache site<\/a>. If you are following along, the version of Cassandra that worked best for me is the 2.2.5 one.<\/p>\n<p>With either of the above, start up Cassandra, using ccm:<\/p>\n<pre class=\"brush:java\">ccm start test<\/pre>\n<p>or with the download from the Apache site:<\/p>\n<pre class=\"brush:java\">bin\/cassandra -f<\/pre>\n<p>The -f flag will keep the process in the foreground, this way stopping the process will be very easy once you are done with the samples.<\/p>\n<p>Now connect to this Cassandra instance:<\/p>\n<pre class=\"brush:java\">bin\/cqlsh<\/pre>\n<p>and create a sample Cassandra keyspace:<\/p>\n<pre class=\"brush:java\">CREATE KEYSPACE IF NOT EXISTS sample WITH replication = {'class':'SimpleStrategy', 'replication_factor':1};<\/pre>\n<h2>Using Spring Boot Cassandra<\/h2>\n<p>Along the lines of anything\u00a0<a href=\"http:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/htmlsingle\/\">Spring Boot<\/a> related, there is a starter available for pulling in all the relevant dependencies of Cassandra, specified as a gradle dependency here:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">compile('org.springframework.boot:spring-boot-starter-data-cassandra')<\/pre>\n<p>This will pull in the dependencies that trigger the\u00a0<a href=\"https:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/html\/using-boot-auto-configuration.html\">Auto-configuration<\/a> for Cassandra related instances &#8211; a\u00a0<a href=\"http:\/\/docs.datastax.com\/en\/drivers\/java\/3.0\/com\/datastax\/driver\/core\/Session.html\">Cassandra session<\/a> mainly.<\/p>\n<p>For the sample I have defined an entity called the Hotel defined the following way:<\/p>\n<pre class=\"brush:java\">package cass.domain;\r\n\r\nimport org.springframework.data.cassandra.mapping.PrimaryKey;\r\nimport org.springframework.data.cassandra.mapping.Table;\r\n\r\nimport java.io.Serializable;\r\nimport java.util.UUID;\r\n\r\n@Table(\"hotels\")\r\npublic class Hotel implements Serializable {\r\n\r\n    private static final long serialVersionUID = 1L;\r\n\r\n    @PrimaryKey\r\n    private UUID id;\r\n\r\n    private String name;\r\n\r\n    private String address;\r\n\r\n    private String zip;\r\n\r\n    private Integer version;\r\n\r\n    public Hotel() {\r\n    }\r\n\r\n    public Hotel(String name) {\r\n        this.name = name;\r\n    }\r\n\r\n    public UUID getId() {\r\n        return id;\r\n    }\r\n\r\n    public String getName() {\r\n        return this.name;\r\n    }\r\n\r\n    public String getAddress() {\r\n        return this.address;\r\n    }\r\n\r\n    public String getZip() {\r\n        return this.zip;\r\n    }\r\n\r\n    public void setId(UUID id) {\r\n        this.id = id;\r\n    }\r\n\r\n    public void setName(String name) {\r\n        this.name = name;\r\n    }\r\n\r\n    public void setAddress(String address) {\r\n        this.address = address;\r\n    }\r\n\r\n    public void setZip(String zip) {\r\n        this.zip = zip;\r\n    }\r\n\r\n    public Integer getVersion() {\r\n        return version;\r\n    }\r\n\r\n    public void setVersion(Integer version) {\r\n        this.version = version;\r\n    }\r\n\r\n}<\/pre>\n<p>and the Spring data repository to manage this entity:<\/p>\n<pre class=\"brush:java\">import cass.domain.Hotel;\r\nimport org.springframework.data.repository.CrudRepository;\r\n\r\nimport java.util.UUID;\r\n\r\npublic interface HotelRepository extends CrudRepository&lt;Hotel, UUID&gt;{}<\/pre>\n<p>A corresponding cql table is required to hold this entity:<\/p>\n<pre class=\"brush:java\">CREATE TABLE IF NOT EXISTS  sample.hotels (\r\n    id UUID,\r\n    name varchar,\r\n    address varchar,\r\n    zip varchar,\r\n    version int,\r\n    primary key((id))\r\n);<\/pre>\n<p>That is essentially it, Spring data support for Cassandra would now manage all the CRUD operations of this entity and a test looks like this:<\/p>\n<pre class=\"brush:java\">import cass.domain.Hotel;\r\nimport cass.repository.HotelRepository;\r\nimport org.junit.Test;\r\nimport org.junit.runner.RunWith;\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.boot.test.SpringApplicationConfiguration;\r\nimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\r\n\r\nimport java.util.UUID;\r\n\r\nimport static org.hamcrest.MatcherAssert.assertThat;\r\nimport static org.hamcrest.Matchers.equalTo;\r\n\r\n@RunWith(SpringJUnit4ClassRunner.class)\r\n@SpringApplicationConfiguration(classes = SampleCassandraApplication.class)\r\npublic class SampleCassandraApplicationTest {\r\n\r\n @Autowired\r\n private HotelRepository hotelRepository;\r\n\r\n @Test\r\n public void repositoryCrudOperations() {\r\n  Hotel sample = sampleHotel();\r\n  this.hotelRepository.save(sample);\r\n\r\n  Hotel savedHotel = this.hotelRepository.findOne(sample.getId());\r\n\r\n  assertThat(savedHotel.getName(), equalTo(\"Sample Hotel\"));\r\n\r\n  this.hotelRepository.delete(savedHotel);\r\n }\r\n\r\n private Hotel sampleHotel() {\r\n  Hotel hotel = new Hotel();\r\n  hotel.setId(UUID.randomUUID());\r\n  hotel.setName(\"Sample Hotel\");\r\n  hotel.setAddress(\"Sample Address\");\r\n  hotel.setZip(\"8764\");\r\n  return hotel;\r\n }\r\n\r\n}<\/pre>\n<p><a href=\"https:\/\/github.com\/bijukunjummen\/sample-boot-with-cassandra\">Here<\/a> is the github repo with this sample. There is not much to this sample yet, in the next blog post I will enhance this sample to account for the fact that it is very important to understand the distribution of data across a cluster in a NoSQL system and how the entity like Hotel here can be modeled for efficient CRUD operations.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.java-allandsundry.com\/2016\/04\/first-steps-to-spring-boot-cassandra.html\">First steps to Spring Boot Cassandra<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Biju Kunjummen at the <a href=\"http:\/\/www.java-allandsundry.com\/\">all and sundry<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data Cassandra documentation. Here I will take a little more roundabout way, by actually installing Cassandra locally and running a basic test against it and I aim to develop this sample into a more &hellip;<\/p>\n","protected":false},"author":236,"featured_media":53,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[111,30,854,321],"class_list":["post-55091","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-apache-cassandra","tag-spring","tag-spring-boot","tag-spring-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>First steps to Spring Boot Cassandra - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"First steps to Spring Boot Cassandra - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-19T10:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-25T07:31:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Biju Kunjummen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Biju Kunjummen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html\"},\"author\":{\"name\":\"Biju Kunjummen\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\"},\"headline\":\"First steps to Spring Boot Cassandra\",\"datePublished\":\"2016-04-19T10:00:19+00:00\",\"dateModified\":\"2016-04-25T07:31:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html\"},\"wordCount\":385,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"keywords\":[\"Apache Cassandra\",\"Spring\",\"Spring Boot\",\"Spring Data\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html\",\"name\":\"First steps to Spring Boot Cassandra - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"datePublished\":\"2016-04-19T10:00:19+00:00\",\"dateModified\":\"2016-04-25T07:31:56+00:00\",\"description\":\"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/04\\\/first-steps-spring-boot-cassandra.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"First steps to Spring Boot Cassandra\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\",\"name\":\"Biju Kunjummen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"caption\":\"Biju Kunjummen\"},\"sameAs\":[\"http:\\\/\\\/biju-allandsundry.blogspot.com\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Biju-Kunjummen\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"First steps to Spring Boot Cassandra - Java Code Geeks","description":"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html","og_locale":"en_US","og_type":"article","og_title":"First steps to Spring Boot Cassandra - Java Code Geeks","og_description":"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data","og_url":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-04-19T10:00:19+00:00","article_modified_time":"2016-04-25T07:31:56+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","type":"image\/jpeg"}],"author":"Biju Kunjummen","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Biju Kunjummen","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html"},"author":{"name":"Biju Kunjummen","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5"},"headline":"First steps to Spring Boot Cassandra","datePublished":"2016-04-19T10:00:19+00:00","dateModified":"2016-04-25T07:31:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html"},"wordCount":385,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","keywords":["Apache Cassandra","Spring","Spring Boot","Spring Data"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html","url":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html","name":"First steps to Spring Boot Cassandra - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","datePublished":"2016-04-19T10:00:19+00:00","dateModified":"2016-04-25T07:31:56+00:00","description":"If you want to start using Cassandra NoSQL database with\u00a0Spring Boot, the best resource is likely the Cassandra samples available\u00a0here\u00a0and the\u00a0Spring data","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2016\/04\/first-steps-spring-boot-cassandra.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"First steps to Spring Boot Cassandra"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5","name":"Biju Kunjummen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","caption":"Biju Kunjummen"},"sameAs":["http:\/\/biju-allandsundry.blogspot.com"],"url":"https:\/\/www.javacodegeeks.com\/author\/Biju-Kunjummen"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/55091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/236"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=55091"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/55091\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=55091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=55091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=55091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}