13.07.2015 Views

Spring Data MongoDB - Spring Web Services - Parent - SpringSource

Spring Data MongoDB - Spring Web Services - Parent - SpringSource

Spring Data MongoDB - Spring Web Services - Parent - SpringSource

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

please define productname in your docbook file!1. Why <strong>Spring</strong> <strong>Data</strong> - Document?The <strong>Spring</strong> Framework is the leading full-stack Java/JEE application framework. It provides a lightweightcontainer and a non-invasive programming model enabled by the use of dependency injection, AOP,and portable service abstractions.NoSQL storages provide an alternative to classical RDBMS for horizontal scalability and speed. In termsof implementation, Document stores represent one of the most popular types of stores in the NoSQLspace. The document database supported by <strong>Spring</strong> <strong>Data</strong> are <strong>MongoDB</strong> and CouchDB, though just<strong>MongoDB</strong> integration has been released to date.The goal of the <strong>Spring</strong> <strong>Data</strong> Document (or DATADOC) framework is to provide an extension to the<strong>Spring</strong> programming model that supports writing applications that use Document databases. The <strong>Spring</strong>framework has always promoted a POJO programming model with a strong emphasis on portability andproductivity. These values are caried over into <strong>Spring</strong> <strong>Data</strong> Document.Notable features that are used in <strong>Spring</strong> <strong>Data</strong> Document from the <strong>Spring</strong> framework are the Featuresthat particular, features from the <strong>Spring</strong> framework that are used are the Conversion Service, JMXExporters, portable <strong>Data</strong> Access Exception hierarchy, <strong>Spring</strong> Expression Language, and Java basedIoC container configuration. The programming model follows the familiar <strong>Spring</strong> 'template' style, so if youare familar with <strong>Spring</strong> template classes such as JdbcTemplate, JmsTemplate, RestTemplate, you willfeel right at home. For example, MongoTemplate removes much of the boilerplate code you would haveto write when using the <strong>MongoDB</strong> driver to save POJOs as well as a rich java based query interface toretrieve POJOs. The programming model also offers a new Repository approach in which the <strong>Spring</strong>container will provide an implementation of a Repository based soley off an interface definition whichcan also include custom finder methods.1.4.0.BUILD-SNAPSHOT<strong>Spring</strong> <strong>Data</strong> <strong>MongoDB</strong> -Reference Documentation 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!