Oliver Gierke
a5328da460
Added handling of BigInteger.
...
Added converter to handle BigInteger values. Adapted id handling to try converting and object to String before taking the id as is. Made custom converter implementations safe against invocations with null.
15 years ago
Oliver Gierke
fd7e41b753
DATADOC-228 - MappingMongoConverter now writes null for map values.
...
Fixes a NPE that one got when trying to persist a Map containing null as value for entries.
15 years ago
Oliver Gierke
f349f5ea10
DATADOC-226 - Added QuerydslRepositorySupport class to ease implementing repositories using Querydsl predicates.
15 years ago
Oliver Gierke
aa9d69d584
DATADOC-225 - BasicMongoPersistentEntity doesn't reject root entities without id anymore.
15 years ago
Oliver Gierke
764317635c
Fixed annotation package pattern for APT processor.
15 years ago
Oliver Gierke
9ed5e6886c
DATADOC-224 - Inspect value entity metadata in case it's a subtype of the declared property.
15 years ago
Oliver Gierke
94f36d27fc
Upgraded Querydsl APT plugin to 1.0.2.
15 years ago
Oliver Gierke
a5fb4872b7
DATADOC-221 - Potentially convert values of maps on reading.
15 years ago
Oliver Gierke
2f577c9678
Updated Spring Data Commons dependency to 1.2.0.BUILD-SNAPSHOT.
15 years ago
Oliver Gierke
9bcd19866f
DATADOC-211 - Guard potential NullPointerException in AbstractMongoConverter.maybeConvertObject(…).
...
Quickfix, will probably undergo a deeper cleanup as part of DATADOC-214.
15 years ago
Oliver Gierke
2af45518bd
Formatting in MappingMongoConverter.
15 years ago
Oliver Gierke
e1daf36ed8
DATADOC-209 - MappingMongoConverter handles collections of enums correctly now.
15 years ago
Oliver Gierke
101064769c
DATADOC-207 - Empty custom maps get read correctly.
...
Eagerly detect the map target type by using the TypeInformation instead of falling back to the raw Map interface.
15 years ago
Oliver Gierke
ac9c804aae
DATADOC-206 - Upgraded to Querydsl 2.2.0.
15 years ago
Oliver Gierke
992f09d731
Removed unused imports, polished license headers and suppres some compiler warnings.
15 years ago
Oliver Gierke
4324ed8231
Javadoc cleanups and a few code cleanups.
15 years ago
Oliver Gierke
eebe973209
Added *.sonar4clipseExternals, .springBeans and *.orig to .gitignore.
...
Removed accidentally checked in .classpath.orig file.
15 years ago
Oliver Gierke
bb01cccac5
Updated architecture description to allow core package to have access to geo.
15 years ago
Oliver Gierke
2bdd49e3b7
Beautify upper version ranges in manifest.
15 years ago
Oliver Gierke
f424b7c760
DATADOC-166 - Check for null on removing objects.
15 years ago
Oliver Gierke
58b9db28a8
Polished Sonargraph architecture description.
15 years ago
Oliver Gierke
3e56210c78
Polished test cases a little.
15 years ago
Oliver Gierke
523612a3a9
DATADOC-175 - Broke up cyclic dependencies and added architecture management file.
...
Added initial architecture description for Sonargraph. Moved some types around and introduced core package to break up cyclic dependencies.
15 years ago
Jon Brisbin
1604c80d32
DATADOC-176 - Added test case to make sure non-ObjectIds can be used in DBRefs
15 years ago
Jon Brisbin
d27a1ad310
DATADOC-176 - Changed from using ObjectId to using Object for IDs in DBRefs.
15 years ago
Oliver Gierke
d2cca2c52a
DATADOC-192 - Tweak Array handling in processing collection-like structures in MappingMongoConverter.
...
Fixes broken tests.
15 years ago
Oliver Gierke
ce0539a3dc
DATADOC-192 - MappingMongoConverter handles collections correctly now.
...
Replaced hard coded List creation with delegate to Spring's CollectionFactory. Although the List should get converted before setting the value we can prevent that additional step by looking up the correct collection type upfront.
15 years ago
Oliver Gierke
4b4c35b904
DATADOC-191 - Removed 'document' from package names.
...
Polished template.mf as well by using Maven version placeholders.
15 years ago
Oliver Gierke
f0df16a340
Added more unit tests for Box.
15 years ago
Oliver Gierke
a9670de959
DATADOC-134 - Added test case to show indexes with unique flag work.
15 years ago
Oliver Gierke
2d5f41f65c
DATADOC-171 - Convert BigDecimals to String by default.
...
Unfortunately MongoDB can't handle BigDecimal instances by default thus we have to provide a default serialization. We do by simply serializing it into a String and reading it back. Can be customized to register a custom Converter with the MongoConverter.
15 years ago
Oliver Gierke
2e3f2c602c
Made integration test less aggressive in cleaning up to avoid inter-test collisions.
15 years ago
Oliver Gierke
a2687b6688
DATADOC-188 - Allow controlling repository index creation.
...
Disabled index creation for repository query methods by default. Added property on MongoRepositoryFactoryBean to enable index creation and expose that via 'create-query-indexes' attribute on the namespace.
15 years ago
Oliver Gierke
e89ea320bc
Added @NoRepositoryBean to MongoRepository to prevent it being accidentally picked up during class path scanning.
15 years ago
Oliver Gierke
df24218a4f
DATADOC-189 - Improved extensibility of MongoRepositoryFactoryBean.
...
Creation of MongoRepositoryFactory is now delegated into a template method that gets a MongoTemplate handed over.
15 years ago
Oliver Gierke
2d09b8b7d1
DATADOC-186 - Ensure index property order.
...
Use LinkedHashMap inside Index to make sure properties added are kept in the order of the addition.
15 years ago
Oliver Gierke
dd06973f50
DATADOC-190 - SimpleMongoRepository.exists(…) now works for entities with non-ObjectId id type.
...
Changed the implementation of the exists(…) method to make sure the query is handed to the QueryMapper to convert the id appropriately before executing the query.
15 years ago
Oliver Gierke
2256ebac1b
DATADOC-172 - Allow defining property order for document mapping.
...
Entities can now use @Field annotation to define the order using the order attribute. We will simply start with the lower values and proceed to the higher ones. Unannotated properties are ordered behind all annotated (and order declared) ones. One might not assume any particular order for fields where the order is not manually defined.
Removed @FieldName as it is superseeded by @Field .
15 years ago
Oliver Gierke
f4373957b3
DATADOC-177 - Sort now preserves order of individual sort properties.
...
Using a LinkedHashMap now to preserve the order of properties to be sorted upon.
15 years ago
Thomas Risberg
af0cd9049a
DATADOC-178 removed System.out.println statement
15 years ago
Thomas Risberg
99edcb82cf
reformatted code to use tabs
15 years ago
Thomas Risberg
7a98877e75
DATADOC-181 added destroy() method and DisposableBean interface to call close on Mongo
15 years ago
Oliver Gierke
d856a7cad9
DATACMNS-49, DATADOC-100 - Allow externalizing Mongo repository queries.
...
Adapted changes in Spring Data Commons for DATACMNS-49. We now automatically pick up classpath*:META-INF/mongo-named-queries.properties to find named queries when using the namespace. See AbstractMongoRepositoryIntegrationTests.findsPeopleByNamedQuery() for sample.
15 years ago
Oliver Gierke
c1b396cca5
Replaced custom implementation over usage of TypeInformation.getActualType().
15 years ago
Oliver Gierke
2e86012b3f
Lowered log level to speed up test execution.
15 years ago
Oliver Gierke
538a62efce
Adapted package refactorings in Spring Data Commons.
15 years ago
Oliver Gierke
3573851bfc
Polishing.
...
Removed obsolete methods from MappingMongoConverter exposing internals. Added JavaDoc here and there. Polished GeospatialIndex value object and added some assertions to it. Fixed generics warnings in GeoIndexedAppConfig.
15 years ago
Oliver Gierke
e47ddf4bf2
Polished MonogoPersistentEntityIndexCreator.
...
Fixed generics warnings and the index key being set to the field name in any case now. setting the index name is now only affecting the name.
15 years ago
Oliver Gierke
c59711a409
Use findOne(…) for single entity queries inside repository abstraction.
15 years ago
Oliver Gierke
b1ab3f6ade
DATADOC-162 - Added more test cases around Point class.
15 years ago