Thomas Risberg
edba941dd0
DATADOC-83 - removed the spring-data-document-core module; move @RelatedDocument to the spring-data-mongodb-cross-store module; renamed "org.springframework.data.persistence.document.mongo" package
2011-05-24 10:00:06 -04:00
Mark Pollack
c75218387b
DATADOC-42 - Provide option for configuring replica sets using the Mongo namespace
2011-05-24 02:08:17 -04:00
Mark Pollack
2e5906fa56
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
2011-05-24 00:57:39 -04:00
Mark Pollack
c6c3dfef15
DATADOC-42 - Provide option for configuring replica sets using the Mongo namespace (partial work)
2011-05-24 00:57:03 -04:00
Mark Pollack
43925c9cf6
add logging to some collection operations
2011-05-24 00:55:49 -04:00
Mark Pollack
3893eb126d
DATADOC-83 - Review dependencies
2011-05-24 00:55:30 -04:00
Mark Pollack
c8e16318e8
DATADOC-83 - Review dependencies
2011-05-24 00:49:17 -04:00
Mark Pollack
c48f892124
DATADOC-83 - Review dependencies
2011-05-23 23:16:43 -04:00
Mark Pollack
4c01993666
DATADOC-138 - Expose all properties of MongoOptions classin Mongo namespace
...
DATADOC-135 - <mongo:options /> should use - instead of camel case to be consistent with other atrtibute names
2011-05-23 23:08:07 -04:00
Oliver Gierke
bf8b85ef98
Fixed invalid exception in looking up a type hint from DBObject.
...
So far the implementation of MappingMongoConverter.findTypeToBeUsed(…) threw an exception if it found a type hind but couldn't load the class. This causes issues when the class names change where the document still contains 'old' type information. Not being able to load a class should simply be considered as no type information found, thus we're returning null now. Updated Javadoc accordingly.
2011-05-24 00:42:09 +02:00
Thomas Risberg
974faec6dd
DATADOC-88 fixed missing propagation of host/port when no nested <mongo> element provided
2011-05-23 13:33:09 -04:00
Thomas Risberg
b5e83d4350
DATADOC-105 added list of jars need for builds not using Maven
2011-05-23 12:46:28 -04:00
Thomas Risberg
c79989ce99
DATADOC-56 added a section documenting _id conversion rules
2011-05-23 12:30:04 -04:00
Oliver Gierke
208c977e0a
Moved QueryDslPredicateExecutor into Spring Data Commons.
2011-05-23 12:23:06 +02:00
Oliver Gierke
df1e900c55
Fixed template.mf to only export mongodb package.
2011-05-22 15:28:13 +02:00
Oliver Gierke
22ab2007da
DATADOC-145 - Fixed mapping collections with abstract component types.
...
Let recursive mapping calls of collection elements use the value type instead of the collections component type. Refactored MappingMongoConverter to make collection handling more maintainable. Added code to always add custom type information if the actual value being stored differs from the declared one.
Moved some of the DBRef discovering code into implementations of MongoPersistentProperty. Renamed MongoPersistentProperty.getKey() to ….getFieldName().
2011-05-22 15:20:04 +02:00
Thomas Risberg
fdc81440bd
DATADOC-15 introduced a protected WriteConcern prepareWriteConcern(WriteConcern writeConcern) method to MongoTemplate to faciliate subclass customization
2011-05-20 17:01:31 -04:00
Thomas Risberg
4052506df1
DATADOC-88 changed db attribute to dbname on <mongo:db-factory>
2011-05-20 16:28:36 -04:00
Thomas Risberg
4356297421
Changed tests to use 'database' as the database name except for the repositories tests
2011-05-20 16:11:33 -04:00
Oliver Gierke
d0da787f70
Removed mapping-context-ref from repositories namespace.
...
We now take the mapping context from the wired MongoTemplate.
2011-05-20 20:47:16 +02:00
Oliver Gierke
e89d09cc86
DATADOC-144 - Added @FieldName annotation to allow defining the name of the field a property shall be stored to.
2011-05-20 20:47:16 +02:00
Thomas Risberg
3e38595fe8
DATADOC-142 changed constructor taking Mongo and database name to accept user credentials
2011-05-20 12:58:07 -04:00
J. Brisbin
ad287efb4e
DATADOC-143 - Made MongoMappingContext the default converter for the template, which also meant:
...
Several changes to how objects are initialized inside the template:
1. In one is not specified, a MappingMongoConverter is created and set as the default.
2. A special ApplicationEventPublisher implementation is installed by default to handle creating indexes when the template isn't used inside a Spring application context.
3. If a Spring application context is available, it will be set as the template's application context and eventPublisher, with the index creator being registered as an event listener if one isn't already present.
The tests had to be changed in a couple places to accurately reflect how mapping contexts and converters are now handled.
2011-05-20 11:38:20 -05:00
Thomas Risberg
98da8beb67
DATADOC-80 changed setCustomConverters to take a Set<Object> instead of a List similar to ConversionServiceFactory.registerConverters(…)
2011-05-20 08:04:13 -04:00
Oliver Gierke
9324ae2593
DATADOC-137 - Repositories now correctly replace multiple placeholders in JSON based queries.
...
When annotation a repository method with e.g. @Query("{ 'firstname' : ?0, 'lastname' : ?1 }") all placeholders get now replaced correctly. Added unit tests and fixed broken logging in StringBasedQueryCreator,
2011-05-20 08:27:08 +02:00
Mark Pollack
adc56ce79f
DATADOC-83 - Review dependencies
...
Removed dependency on spring mvc in data-document-core to spring-data-document-examples\mongodb-myrestaurants-analytics
2011-05-19 14:04:34 -04:00
Thomas Risberg
2832b524d3
DATADOC-121 switched to use MappingMongoConverter as default; removed some renamed methods reintroduced from recent merge
2011-05-19 13:25:29 -04:00
Mark Pollack
1640db5d7c
removed unused abstractions in data-document-core
2011-05-19 13:02:53 -04:00
Thomas Risberg
ac762b2289
changed Xlint options to avoid 'bad path element' error during build
2011-05-19 12:54:23 -04:00
Thomas Risberg
9429326ec2
removed collection from annotation since it is not used
2011-05-19 12:37:34 -04:00
Thomas Risberg
3e840e2380
DATADOC-121 deprecated the SimpleMongoConverter
2011-05-19 10:11:41 -04:00
J. Brisbin
5b57b40274
Added namespace parser for MongoDbFactory, made changes to getting mapping stuff to use MongoDbFactory
2011-05-19 08:47:50 -05:00
Thomas Risberg
63d9d35cba
DATADOC-80 renamed setConverters to setCustomConverters and made signature consistent between Simple and mapping converters
2011-05-18 17:59:42 -04:00
Thomas Risberg
bf5fc0ff1f
DATADOC-122 added a MongoCollectionsUtils to provide a method for preferred collection name
2011-05-18 17:24:50 -04:00
Oliver Gierke
6287fa425d
DATADOC-108 - added findbyId(…) methods to MongoTemplate.
...
Removed Criteria.whereId(…). Updated SimpleMongoRepository to use the new method and use more core template methods to prevent objects from being marshalled to find out whether a particular object exists.
2011-05-18 23:16:45 +02:00
Oliver Gierke
345e6ebf8b
DATADOC-136 - Fixed conversion of enums.
...
Introduced writeSimpleInternal(…) method that automatically stores the name of an enum instead of the enum itself. Changed quite a few places to rather use MongoPersistentProperty.getKey() over getName().
2011-05-18 23:16:44 +02:00
Thomas Risberg
4aaa32fe1d
DATADOC-141 DATADOC-89 introduced a protected prepareCollection method and a boolean flag setSlaveOk on the MongoTemplate to have template instance level control over slave behavior
2011-05-18 15:46:22 -04:00
Thomas Risberg
60774dca26
DATADOC-88 switched test config files to use MongoDbFactory
2011-05-18 10:20:33 -04:00
Oliver Gierke
c9d5565aaa
DATACMNS-38 - Added unit test for adding a self-referencing entity to the mapping context.
2011-05-17 20:19:08 +01:00
Thomas Risberg
30e96f9c97
DATADOC-88 added accessors for Mongo and database name to MongoDbFactory
2011-05-17 12:13:42 -04:00
Thomas Risberg
9641434090
DATADOC-88 removed unnessecary package protected constructor
2011-05-17 12:06:07 -04:00
Thomas Risberg
86960006cb
DATADOC-88 introducing a MongoDbFactory interface and MongoTemplate constructors that take this as an argument
2011-05-16 18:07:56 -04:00
Thomas Risberg
21cd013cf1
DATADOC-88 re-introducing a MongoDbFactoryBean for configuring Mongo DB objects
2011-05-16 14:46:58 -04:00
Thomas Risberg
95750ffde1
cleaned up unused imports
2011-05-16 12:19:34 -04:00
Thomas Risberg
6ed1d2b226
DATADOC-110 removed 'substituteMappedIdIfNecessary' since this is now handled by QueryMapper
2011-05-16 12:11:55 -04:00
Thomas Risberg
4e04d0acd1
DATADOC-119 added test using 'afterMappingMongoConverterCreation' to register custom converters
2011-05-15 11:26:48 -04:00
Thomas Risberg
2212ca4b00
DATADOC-133 changed non-string attributes to xsd:string to support configuration using property placeholder; upgraded to Mongo Java driver 2.5.3
2011-05-13 17:26:47 -04:00
Oliver Gierke
025691a97a
Change indentation from spaces to tabs.
2011-05-13 18:04:19 +02:00
Oliver Gierke
94e4d2b095
DATADOC-130 - Convert map key type to discovered generic key type.
...
Reding values into a map assumed map keys to be String values. We know leverage the conversion service to convert the key to the type we discover from the generics property information.
2011-05-13 12:45:38 +02:00
J. Brisbin
41e49ad3e2
DATADOC-96 - Had to tweak the way the QueryMapper works so that it more correctly searches for id properties to convert to _id as well as trying to turn them into ObjectIds if it can. If it can't, it puts the value in as-is.
2011-05-12 16:52:03 -05:00