Mark Pollack
cb2cd48ca1
Ignore Thumbs.db
2011-03-17 15:36:30 -04:00
Jon Brisbin
74df4349ed
Use DBRefs instead of DBObjects so that save() will work. Now requires that a Mongo instance be set on the MappingMongoConverter, which is done from afterPropertiesSet() on the template.
2011-03-16 08:48:25 -05:00
Oliver Gierke
b6c3760e78
Fixed ConversionService handling in SimpleMongoConverter.
...
Removed possibility to use custom ConversionService and rather provide a setter to allow registering custom Converter and ConverterFactory instances. This way we can use a custom ConversionService our own that does not regard the ObjectToStringConverter registered by default. This way ConversionService.canConvert(…, String.class) will not return true by default.
2011-03-16 11:56:39 +01:00
Oliver Gierke
f747f3df60
Only consider properties that are backed by a field actually.
...
Changed MongoPropertyDescriptor.isMappable(…) to check whether the owning type actually has a field with the property name. If not the property will not be regarded as mappable. This results in plain functional getters (that are not a bean property getter actually) to be skipped transparently.
2011-03-16 11:56:39 +01:00
Thomas Risberg
4b7d96347c
ignore the eclipse project files
2011-03-15 23:36:20 -04:00
Thomas Risberg
d223a9817a
added test scope
2011-03-15 23:36:20 -04:00
Mark Pollack
fed97a3134
Add setter for WriteResutlChecking and MongoConverter
2011-03-15 17:01:19 -04:00
Oliver Gierke
0492b189af
Added some @SuppressWarnings where necessary.
2011-03-15 20:39:03 +01:00
Oliver Gierke
8b16502b2a
Re-added dependency to Mongo driver.
2011-03-15 20:06:16 +01:00
Oliver Gierke
673c70b7de
DATADOC-41 - Initial version of QueryDsl integration for Mongo DB.
...
Added necessary dependencies, repository and APT processor plugin. Added QueryDslPredicateExecutor and a QueryDsl specific sub-class of SimpleMongoRepository.
Adapted MongoRepositoryFactory to use new QueryDslRepository implementation when a repository interface extends QueryDslPredicateExecutor. Added AnnotationProcessor to create query classes from QueryDsl annotations.
Todo's left open:
- move common QueryDsl integration code into Spring Data commons (see TODOs in the sourcecode)
2011-03-15 18:36:19 +01:00
Thomas Risberg
e3bee8ab0e
restored missing dependencies
2011-03-15 13:20:47 -04:00
J. Brisbin
032de81478
Format, organize imports, remove eclipse artifacts
2011-03-15 11:57:55 -05:00
Oliver Gierke
d4f358abd0
Adapted introduction of TypeInformation in Spring Data Commons Core.
...
The MappingMongoConverter now uses TypeInformation to inspect field types and nested ones. Created overloaded versions of read(…) and write(…) to work with PersistentEntity directly so that nested calls to those methods can be distinguished from from top level ones.
2011-03-15 17:29:18 +01:00
J. Brisbin
408294c93f
Merging into master
2011-03-15 09:05:59 -05:00
Jon Brisbin
65d7a7feaf
Preparing to merge into branch master
2011-03-15 09:01:29 -05:00
J. Brisbin
784ee634b6
Merge branch 'master' of github.com:SpringSource/spring-data-document into spring-data-mapping
2011-03-15 08:58:46 -05:00
Oliver Gierke
f2119ed235
Added Spring Milestone plugin repository to find AspectJ.
2011-03-15 08:45:08 +01:00
Mark Pollack
e9957ea718
remove reference to src/main/resoures as eclipse was complianing
2011-03-14 12:33:21 -04:00
Jon Brisbin
21048f211d
Tweaks to tests, BasePerson class, common inheritance to test classes, tweaks to complex/simple type detection.
2011-03-14 10:58:36 -05:00
J. Brisbin
255fbb3379
Merge branches 'master' and 'spring-data-mapping' of github.com:SpringSource/spring-data-document into spring-data-mapping
2011-03-14 08:28:30 -05:00
Oliver Gierke
47b8523cb3
Removed Mongo specific id handling from ConfigurationBuilder.
...
Introduced MongoPersistentProperty that implements handling of fields with certain types and names as id property.
2011-03-13 09:12:52 +01:00
J. Brisbin
d92c7e2ff5
Merge branch 'spring-data-mapping' of github.com:SpringSource/spring-data-document into spring-data-mapping
2011-03-12 20:09:21 -06:00
J. Brisbin
c365830b2c
Fixes for bug skipping fields in superclasses
2011-03-12 20:03:23 -06:00
Oliver Gierke
2947bfeaa6
Removed @Override annotations as they cannot be used at interfaces with Java 5.
2011-03-12 08:36:42 +01:00
Oliver Gierke
01a800b2cc
DATACMNS-20 - Adapted refactoring of Repository.findById(…) to findOne(…).
2011-03-12 08:23:32 +01:00
Oliver Gierke
4daab96bc4
DATAJPA-19 - Adapted generics and metadata changes made in core.
2011-03-12 08:23:32 +01:00
J. Brisbin
e66f95bcf8
spring-data-commons object mapping support for MongoDB
2011-03-11 16:39:39 -06:00
Oliver Gierke
d824ed7e72
DATACMNS-21 - Override Repository methods returning Iterable.
...
As the MongoOperations currently only returns Lists anyway we can override the methods returning an Iterable to return List for now.
2011-03-11 19:01:05 +01:00
Oliver Gierke
f585beffc8
DATACMNS-20 - Adapted refactoring of Repository.findById(…) to findOne(…).
2011-03-11 18:19:45 +01:00
Oliver Gierke
68635687d1
DATAJPA-19 - Adapted generics and metadata changes made in core.
2011-03-11 16:41:34 +01:00
Thomas Risberg
60f9b05760
DATADOC-48 added additional tests for cross-store
2011-03-09 16:29:12 -05:00
Thomas Risberg
0ad895d6d4
DATADOC-48 added cross-store support for Mongo->JPA relationships
2011-03-08 23:28:42 -05:00
J. Brisbin
5e4b5cf9e0
Removed SimpleMongoConverter from main package
2011-03-08 16:50:05 -06:00
J. Brisbin
ff8b0a166e
Fixes, handling associations
2011-03-08 14:19:20 -06:00
Oliver Gierke
779d9d6a79
Extended SimpleMongoConverter to support registering custom types.
...
Values of the registered custom types are serialized using the underlying ConversionService. This way we can plug in custom converters, e.g. for JodaTime and the like.
2011-03-08 14:33:33 +01:00
Jon Brisbin
40ef4d7ad9
Stripping extra, obsolete stuff.
2011-03-07 16:40:03 -06:00
Jon Brisbin
8949d53252
Trying to fix merge conflicts.
2011-03-07 15:50:24 -06:00
J. Brisbin
1d1ee36b5a
tweaks
2011-03-07 15:47:10 -06:00
J. Brisbin
9a4ed1987b
Merging upstream changes
2011-03-07 15:45:51 -06:00
J. Brisbin
15768b3a44
First stab at mapping
2011-03-07 15:35:30 -06:00
Mark Pollack
d6fd36ce00
Igore CouchDB integration tests until couchdb server is on CI build machine
2011-03-07 14:56:42 -05:00
Mark Pollack
0baad6740a
Simple CouchDB integration
2011-03-07 14:54:12 -05:00
Oliver Gierke
4616fb19a2
DATADOC-34 - Create indexes for repository query methods on start.
...
Adapted changes of Spring Data Commons. Implemented IndexEnsuringQueryCreationListener that creates an index for all the properties used in a query. Applies descending order by default but consideres potentially added OrderBy clauses in the query to define the order of the index attributes.
2011-03-04 09:47:25 +01:00
Oliver Gierke
9bc4f9ad98
Added fix for And and Or keywords to changelog.
2011-03-03 18:06:36 +01:00
Thomas Risberg
8f39f6616d
DATADOC-48 some more cross-store tests
2011-03-03 10:16:54 -05:00
Thomas Risberg
716875db03
added cross-store to full build
2011-03-02 10:08:31 -05:00
Thomas Risberg
4d3db4fd47
DATADOC-48 adding basic cross-store features and some tests
2011-03-02 09:57:12 -05:00
Thomas Risberg
358fd51c4d
DATADOC-48 adding basic cross-store features
2011-03-02 08:58:43 -05:00
Oliver Gierke
597b4374bc
DATADOC-49 - Fixed And and Or keyword handling.
...
Made Query.or(…) public and changed MongoQueryCreator to operate on Query rather than on Criteria.
2011-03-02 11:16:22 +01:00
Oliver Gierke
6f12450be6
Changed @Query based queries to use index parameters.
...
Using indexed parameters allows having a single method parameter to be bound to multiple placeholders.
2011-03-01 21:20:03 +01:00