Commit Graph

38 Commits

Author SHA1 Message Date
Thomas Darimont
71169ca160 DATACMNS-445 - Documentation overhaul.
Updated links and vendor-information in readme. Updated author information. Fixed some typos, added ids to sections updated examples and descriptions. Added and referenced description of repository populator namespace element.

Original pull request: #65.
2014-02-21 13:39:22 +01:00
Oliver Gierke
f089acb17e DATACMNS-442 - Improved documentation to mention @NoRepositoryBean. 2014-02-19 14:47:12 +01:00
Thomas Darimont
eddb3323de DATACMNS-399 - Support query prefix to designate repository query methods.
Extended PREFIX regex in PartTree to support the "query" prefix.

Original author: @jiming
Original pull request: #56.
2013-11-19 12:26:11 +01:00
Nick Williams
eb4b801dc9 DATACMNS-353 - Make Spring HATEOAS purely optional.
Extracted the implementation of UriComponentsContributor from PageableHandlerMethoArgumentResolver and SortHandlerMethodArgumentResolver into dedicated subclasses so that we can really make Spring HATEOAS an optional dependency.

The integration tests are now guarded with an assumption to run on Spring 3.2 as Spring 3.1 has issues with JavaConfig and configuration method overrides. We've upgraded to Spring Data Build 1.2 snapshots so that the tests can be run with -Pspring32. This effectively means that the Spring Data Web support can only be used with a current Spring 3.2. Added a note on that in the reference docs and JavaDoc of @EnableSpringDataWebSupport.

Original pull request: #39.
2013-08-22 08:14:58 +02:00
Oliver Gierke
5cd136dd56 DATACMNS-330, DATACMNS-331 - Documentation of new web support. 2013-05-31 12:03:33 +02:00
Oliver Gierke
e093aead13 DATACMNS-117 - Added PageableHandlerArgumentResolver.
Added PageableHandlerArgumentResolver to supersede the now deprecated PageableArgumentResolver. The latter still stays available for Spring 3.0.x based deployments. Updated reference documentation to mention the newly introduced type as well as possible configuration options.
2013-02-12 17:35:15 +01:00
Oliver Gierke
e79035cb42 DATACMNS-277 - Added general documentation on auditing. 2013-01-30 13:51:57 +01:00
Beverley Talbott
8e3b0cb1e6 DATACMNS-258 - Copyediting of reference documentation. 2013-01-28 12:53:44 +01:00
Biju Kunjummen
979c0f70fb DATAJPA-266 - Polish documentation on pagination.
Fixed information in documentation, 0 indexed Pageable and page.page instead of page for page parameter. Fixes pull request #21.
2013-01-18 09:44:54 +01:00
Oliver Gierke
ac256f9921 DATACMNS-266 - Use new common Maven build infrastructure.
Simplified project setup to be a single module build again. Using Spring Data Build parent POM to simplify project setup. See https://github.com/SpringSource/spring-data-build#spring-data-build-infrastructure
2013-01-16 15:15:24 +01:00
Oliver Gierke
8344387738 DATAJPA-251 - Updated reference documentation.
Improved code samples for PageableArgumentResolver. Corrected registration info for DomainClassConverter and added JavaConfig example. Replace all obsolete readAll(…) method samples with findAll(…). Added hint to @PageableDefaults now being aware of sort properties and direction.
2012-09-17 16:26:25 +02:00
Oliver Gierke
c8c26baf7c DATACMNS-230 - Clarify packages of Page and Sort in reference docs.
Fully qualified first mentions of Pageable and Sort to avoid ambiguities with types of potentially available types of the same name in a store specific implementation.
2012-09-17 11:24:46 +02:00
Oliver Gierke
e922845407 DATACMNS-220, DATAJPA-174 - Updated reference docs on query parsing.
Updated the repositories reference documentation section on query parsing to reflect the correct usage of method prefixes, how to use the Distinct, IgnoreCase and OrderBy clauses.
2012-09-04 11:05:55 +02:00
Oliver Gierke
8d156fb591 DATACMNS-210 - Removed references to removed single <repository /> declarations from reference documentation. 2012-08-10 19:46:24 +02:00
Oliver Gierke
628ddc6a35 DATACMNS-205 - Fix broken reference documentation.
The section on the repository exporters contained a code sample using language="javascript". As the highlighting in the docbkx plugin doesn't support javascript as language it will break the build of other reference documents including this one. Removed the language attribute for this sample entirely.
2012-07-24 12:59:56 +02:00
Oliver Gierke
96795f2980 DATACMNS-47 - Add support for JavaConfig based repository configuration.
Completely rewrote namespace bean definition parsing to be extendable more easily. Separated XML concerns from annotation based configuration. The central point to extend the namespace parsing for a certain module is now hidden behind the RepositoryConfigurationExtension interface (have a look at the RepositoryConfigurationExtensionSupport base class as well).
2012-07-16 19:49:56 +02:00
Oliver Gierke
4a51ce2b84 DATACMNS-189 - Fixed typo in reference documentation. 2012-07-11 12:46:53 +02:00
Oliver Gierke
d441d95197 DATACMNS-58 - Added support for repository populators.
Added RepositoryPopulator abstraction and implementations based on Spring OXM Unmarshallers as well as Jackson. This allows arbitrary repositories being populated with data pulled from XML / JSON, no matter what store they are actually backed. The populator will eventually populate the repositories held in a Repositories instance. It can be used like this:

Repositories repositories = new Repositories(applicationContext);
ResourceReader reader = new JacksonResourceReader();

ResourceReaderRepositoryPopulator populator = new ResourceReaderRepositoryPopulator(reader);
populator.setResourceLocation("classpath*:data.json");
populator.populate(repositories);

The ResourceReader defines what technology shall be used to read the data from the file into objects. The ResourceReaderRepositoryPopulator uses the reader and can either get a set of Resource instances configured or is able to lookup resources using a location string. The actual Repositories instance captures all CrudRepository instances contained inside an ApplicationContext.

The populators can also be used from within XML configuration though the repository namespace elements shown below:

<repository:jackson-populator location="classpath:org/springframework/data/repository/init/data.json" />
		
<repository:unmarshaller-populator location="classpath:org/springframework/data/repository/init/data.xml" unmarshaller-ref="unmarshaller" />

Updated reference documentation accordingly.
2012-06-21 20:03:55 +02:00
Oliver Gierke
cee108d6e9 DATACMNS-149 - Polished repositories reference documentation. 2012-05-16 16:24:31 +02:00
Karl Bennett
a0bec0fce0 DATACMNS-159 - Improve reference documentation on repository extensions.
Updated section covering adding custom behavior to all repositories to better match what is in the actual code base.
2012-04-27 15:55:23 +02:00
Oliver Gierke
3196f3b0f5 DATAJPA-153 - Fixed typo in reference documentation. 2012-04-15 19:43:47 +02:00
Oliver Gierke
171de78200 DATACMNS-145 - Added Docbook file to list all supported keywords. 2012-04-10 18:55:40 +02:00
Oliver Gierke
08b26665d8 DATACMNS-144 - Polished reference docs on repositories.
Made clear that the usages of the JPA namespace are a convenience artifact to keep the sample code copyable as much as possible but need to be tweaked in case one uses repositories with a different store. Added language attributes to code snippets where missing.
2012-04-09 18:21:14 +02:00
Oliver Gierke
6546d81b6f DATACMNS-95 - Added reference documentation for DomainClassConverter, -PropertyEditor as well as PageableArgumentResolver.
Fixed missing closing quote as well.
2011-12-02 15:01:09 +01:00
Oliver Gierke
fcde92636e DATACMNS-71 - Formatting of repositories reference doc source. 2011-12-02 14:17:11 +01:00
Oliver Gierke
4b01b1382e DATACMNS-71 - Fixed missing closing quote in reference documentation. 2011-12-02 14:16:55 +01:00
Oliver Gierke
0fc2985ccb DATACMNS-71 - Fixed cross reference in namespace documentation. 2011-12-02 14:07:28 +01:00
Phil Webb
2f5c4cd3d7 DATAJPA-88 - Minor improvements to documentation. 2011-08-16 17:48:32 +02:00
Oliver Gierke
6ca606ab5c Polished reference documentation. 2011-07-18 21:05:20 +02:00
Oliver Gierke
c470ac0c6b Fixed duplicate section id. 2011-06-23 10:56:59 +02:00
Oliver Gierke
980cadfc0c Fixed reference documentation section ids. 2011-06-23 10:29:07 +02:00
Oliver Gierke
0ea1921a96 Updated reference documentation regarding repository declaration.
Polished Javadoc of Repository to mention possibility of selectively exposing CRUD methods.
2011-05-24 12:33:18 +02:00
Oliver Gierke
f6995d2852 Fixed language declaration of program listing elements. 2011-02-09 19:32:56 +01:00
Oliver Gierke
bd89c60715 Minor fixes to common reference documentation.
- fixed some section ids in repository configuration
- added namespace reference file
2011-02-09 16:46:32 +01:00
Oliver Gierke
a832cd1e47 Added documentation for PagingAndSortingRepository. 2011-02-03 15:03:36 +00:00
Oliver Gierke
175ef77574 Prefixed section ids with repositories. to avoid overlaps with other ids. 2011-02-03 13:52:13 +00:00
Oliver Gierke
14fd81d561 Added general repository documentation and included into the main documentation source file. 2011-02-02 19:36:22 +00:00
Thomas Risberg
0f7984a331 Switched to use new project layout; updated build; moved files around 2010-10-07 12:14:39 -04:00