J. Brisbin
43d0f74a3e
Initial stab at changing the way IDs are handled in the mapping converter.
15 years ago
Oliver Gierke
aeea1bc5d5
Added @PersistenceConstructor to Circle.
15 years ago
Oliver Gierke
187f087270
Minor generics polishing in test cases.
15 years ago
Mark Pollack
115d419d0a
comment back in geo tests.
15 years ago
Mark Pollack
e0bd465649
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
J. Brisbin
6a73e94c57
DATADOC-155 - Add support for any type for id properties, not just the ones that can be converted into an ObjectId
15 years ago
Mark Pollack
7ea14bb4d5
Add failing test PersonPojoWithPrimitiveIdTests
...
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
J. Brisbin
bfc4bc2100
Added clean-up step for new primitive ID tests, cleanup up unused imports in MappingTests.java
15 years ago
Mark Pollack
842c87389d
remove extraneous import
15 years ago
J. Brisbin
e751666f90
Added test and a fix around using primitive ints as IDs
15 years ago
Mark Pollack
f2305681d3
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Mark Pollack
fb39f01f25
DATADOC-88 - Create MongoDbFactory to consolidate DB, Server location, and user credentials into one location
...
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Mark Pollack
e1f8eee2d1
DATADOC-88 - Create MongoDbFactory to consolidate DB, Server location, and user credentials into one location
...
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Mark Pollack
c7c2a66c3b
DATADOC-88 - Create MongoDbFactory to consolidate DB, Server location, and user credentials into one location
15 years ago
Mark Pollack
69b1b9b96b
DATADOC-88 - Create MongoDbFactory to consolidate DB, Server location, and user credentials into one location
15 years ago
Mark Pollack
2284a5137e
DATADOC-88 - Create MongoDbFactory to consolidate DB, Server location, and user credentials into one location
15 years ago
Mark Pollack
46e2cf698e
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Mark Pollack
1087b07086
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Oliver Gierke
d55505f1e5
DATADOC-130 - Added custom converters for Locale and Character.
...
Register a custom converter for Locale and Character classes by default as we have to consider them simple (as they must not be inspected during mapping) but the have to be converted to String values before being handed over to Mongo.
15 years ago
Oliver Gierke
de06029ea2
Updated reference documentation for Mongo repositories.
15 years ago
Oliver Gierke
4d33c9c360
DATADOC-149 - Removed constructor not taking a MongoDbFactory as well as setter for it from MappingMongoConverter.
15 years ago
Oliver Gierke
8474a28538
Adapted introduction of BeanWrapper in Spring Data Commons.
...
Moved code dealing with the ConversionService into AbstractMongoConverter. Added getConversionService() to MongoConverter interface. Replaced usage of MappingBeanHelper with BeanWrapper usage.
15 years ago
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
15 years ago
Mark Pollack
c75218387b
DATADOC-42 - Provide option for configuring replica sets using the Mongo namespace
15 years ago
Mark Pollack
2e5906fa56
DATADOC-147 - Update reference documentation to cover changes from M2 to M3 (partial work)
15 years ago
Mark Pollack
c6c3dfef15
DATADOC-42 - Provide option for configuring replica sets using the Mongo namespace (partial work)
15 years ago
Mark Pollack
43925c9cf6
add logging to some collection operations
15 years ago
Mark Pollack
3893eb126d
DATADOC-83 - Review dependencies
15 years ago
Mark Pollack
c8e16318e8
DATADOC-83 - Review dependencies
15 years ago
Mark Pollack
c48f892124
DATADOC-83 - Review dependencies
15 years ago
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
15 years ago
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.
15 years ago
Thomas Risberg
974faec6dd
DATADOC-88 fixed missing propagation of host/port when no nested <mongo> element provided
15 years ago
Thomas Risberg
b5e83d4350
DATADOC-105 added list of jars need for builds not using Maven
15 years ago
Thomas Risberg
c79989ce99
DATADOC-56 added a section documenting _id conversion rules
15 years ago
Oliver Gierke
208c977e0a
Moved QueryDslPredicateExecutor into Spring Data Commons.
15 years ago
Oliver Gierke
df1e900c55
Fixed template.mf to only export mongodb package.
15 years ago
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().
15 years ago
Thomas Risberg
fdc81440bd
DATADOC-15 introduced a protected WriteConcern prepareWriteConcern(WriteConcern writeConcern) method to MongoTemplate to faciliate subclass customization
15 years ago
Thomas Risberg
4052506df1
DATADOC-88 changed db attribute to dbname on <mongo:db-factory>
15 years ago
Thomas Risberg
4356297421
Changed tests to use 'database' as the database name except for the repositories tests
15 years ago
Oliver Gierke
d0da787f70
Removed mapping-context-ref from repositories namespace.
...
We now take the mapping context from the wired MongoTemplate.
15 years ago
Oliver Gierke
e89d09cc86
DATADOC-144 - Added @FieldName annotation to allow defining the name of the field a property shall be stored to.
15 years ago
Thomas Risberg
3e38595fe8
DATADOC-142 changed constructor taking Mongo and database name to accept user credentials
15 years ago
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.
15 years ago
Thomas Risberg
98da8beb67
DATADOC-80 changed setCustomConverters to take a Set<Object> instead of a List similar to ConversionServiceFactory.registerConverters(…)
15 years ago
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,
15 years ago
Mark Pollack
adc56ce79f
DATADOC-83 - Review dependencies
...
Removed dependency on spring mvc in data-document-core to spring-data-document-examples\mongodb-myrestaurants-analytics
15 years ago
Thomas Risberg
2832b524d3
DATADOC-121 switched to use MappingMongoConverter as default; removed some renamed methods reintroduced from recent merge
15 years ago
Mark Pollack
1640db5d7c
removed unused abstractions in data-document-core
15 years ago