Jon Brisbin
27ba19eac6
Tweaked the README to cover configuring the collection name using Log4J pattern.
2011-03-30 16:32:53 -05:00
Jon Brisbin
1bc042666a
Merge branch 'master' of github.com:SpringSource/spring-data-document
...
Conflicts:
spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/mapping/MappingTests.java
2011-03-30 16:28:01 -05:00
Jon Brisbin
9b97c27599
Use Log4J pattern to generate collection name, fix for test data cleanup.
2011-03-30 16:21:23 -05:00
Thomas Risberg
057eeb101c
DATADOC-48 using the entity lifecycle for transaction synch registration
2011-03-29 21:17:16 -04:00
Thomas Risberg
bfb3db5a2e
more tests for the chained Criteria support
2011-03-29 21:17:16 -04:00
Mark Pollack
c0b8a8e227
DATADOC-74 Update to version 2.4 of mongo driver
2011-03-29 18:01:10 -04:00
Jon Brisbin
8e9cf3a9b1
Fix for build, which was failing on MvcEvent being null in one of the tests.
2011-03-29 15:17:23 -05:00
J. Brisbin
1b9726c3b6
Merge branch 'master' of github.com:SpringSource/spring-data-document
2011-03-29 15:05:26 -05:00
J. Brisbin
7e5378bf60
Added events, changed tests so that application context is created before each run so that indexing is done correctly.
2011-03-29 15:05:14 -05:00
Oliver Gierke
940823778e
Made MongoEntityInformation public as it's needed when extending SimpleRepositoryFactory.
2011-03-29 20:37:39 +02:00
Oliver Gierke
8a2302ec48
DATADOC-59 - Polished JavaDoc of @Query annotation.
2011-03-29 20:37:38 +02:00
J. Brisbin
c6798c9acd
Merge branch 'master' of github.com:SpringSource/spring-data-document
2011-03-29 11:26:51 -05:00
J. Brisbin
084424778d
Renamed log4j appender module
2011-03-29 11:26:46 -05:00
Thomas Risberg
07a343e1de
renamed module spring-data-mongo-log4j to spring-data-mongodb-log4j
2011-03-29 12:11:29 -04:00
Thomas Risberg
81db620c6d
fixed persistence test
2011-03-29 11:57:07 -04:00
Thomas Risberg
f2732197f5
DATADOC-38 fixed class cast exception when calling save with non ObjectId ids
2011-03-29 11:57:07 -04:00
Oliver Gierke
c10e38c9e4
Configured Maven JAR plugin to package the Bundlor generated MANIFEST.MF.
2011-03-29 08:43:44 +02:00
Thomas Risberg
6d13d36a18
DATADOC-72 added support for Mongo's $elemMatch and chained Criteria
2011-03-28 17:10:11 -04:00
Thomas Risberg
615f3f1323
DATADOC-48 improving the entity id handling for partial entity document persistence
2011-03-28 13:58:24 -04:00
Thomas Risberg
6d8ecf2cbb
added mongodb-log4j module
2011-03-28 13:58:24 -04:00
Jon Brisbin
635e156bc0
JIRA: DATADOC-70: Trying to fix problem with indexes being wiped out in the tests, trying to make sure indexes get created properly. Now tests do not wipe out database automatically.
2011-03-25 13:53:16 -05:00
Thomas Risberg
0468ba3ad9
DATADOC-48 adding checks not to overwrite existing keys in changeset
2011-03-25 11:15:08 -04:00
Oliver Gierke
95510e4851
Use more readable logging output pattern.
2011-03-25 13:08:28 +01:00
Oliver Gierke
0fc3c9d6d3
Polished toString() method of Index.
2011-03-25 13:07:49 +01:00
Oliver Gierke
511128f4e7
Let Querydsl annotation processor work with @Document annotation.
2011-03-25 08:26:42 +01:00
Oliver Gierke
986203833a
Fixed potential NullPointer.
2011-03-24 15:50:33 +01:00
Jon Brisbin
7ec8b30fb2
Tweaked README to reflect recent changes in timestamp handling.
2011-03-23 11:55:50 -05:00
Jon Brisbin
c24327d1bc
Took out leftover crap from pom file, changed timestamp handling to use java.util.Date/ISODate objects rather than string/long.
2011-03-23 11:54:53 -05:00
Jon Brisbin
b04023f1f1
Forgot to change Maven artifactId after renaming submodule.
2011-03-23 11:11:20 -05:00
Jon Brisbin
42386d4fee
Added Log4J appender submodule to main project.
2011-03-23 10:40:47 -05:00
J. Brisbin
1b5ef78741
Merge branch 'log4j-appender'
2011-03-23 10:40:47 -05:00
Thomas Risberg
168e8a8896
DATADOC-48 simplified cross-store persistence of @Document annotated fields in a JPA entity; adjusted to package chamges in data-commons; Merge commit 'f21f25fb5284a8647dea16934d660b3608d5006c'
2011-03-23 11:24:52 -04:00
Thomas Risberg
f21f25fb52
DATADOC-48 simplified cross-store persistence of @Document annotated fields in a JPA entity
2011-03-23 07:44:52 -04:00
Oliver Gierke
261c1ae293
Fixed merge conflicts after applying latest changes from master.
2011-03-23 09:27:50 +01:00
Oliver Gierke
7d7cf60e23
DATADOC-69 - Repository namespace now allows referenceing a MappingContext and picks up the default one if available.
2011-03-23 09:21:54 +01:00
Oliver Gierke
bfd79377ca
Made MongoPersistentEntityIndexCreator an ApplicationListener again.
...
MongoPersistentEntityIndexCreator now listens to MappingContextEvents to ensure indexes for added entities *after* the initial set had been added.
2011-03-23 09:21:15 +01:00
Oliver Gierke
18b0f45985
Adapt latest changes in Spring Data Commons.
...
Moved functionality from MongoMappingConfigurationBuilder into MongoMappingContext. Adapted namespace parser to the removal of the MappingConfigurationBuilder component.
2011-03-23 09:19:34 +01:00
Oliver Gierke
1183789bb3
DATADOC-69 - Repository namespace now allows referenceing a MappingContext and picks up the default one if available.
2011-03-23 09:16:10 +01:00
Oliver Gierke
4dd1d0198f
Removed some compiler warnings.
2011-03-23 09:14:30 +01:00
Oliver Gierke
ec7d2deca1
Made MongoPersistentEntityIndexCreator an ApplicationListener again.
...
MongoPersistentEntityIndexCreator now listens to MappingContextEvents to ensure indexes for added entities *after* the initial set had been added.
2011-03-23 07:45:25 +01:00
Oliver Gierke
27b6f0cb21
Adapt latest changes in Spring Data Commons.
...
Moved functionality from MongoMappingConfigurationBuilder into MongoMappingContext. Adapted namespace parser to the removal of the MappingConfigurationBuilder component.
2011-03-23 07:41:04 +01:00
J. Brisbin
efa6d0d8b8
Added applicationId and write concern settings. Documented them in the README.
2011-03-22 18:48:40 -05:00
Jon Brisbin
39a323099f
Added README to document the Log4J appender.
2011-03-22 15:24:14 -05:00
Jon Brisbin
b22412fa98
Fixed a bug introduced in the last commit with importing a morphia exception class, added a Log4J appender module for MongoDB.
2011-03-22 15:14:43 -05:00
Oliver Gierke
67b5a1c99b
Tweaks to index creation handling.
...
Renamed MappingConfigurationHelper to MongoPersistentEntityIndexCreator as this is the purpose of the class. Refactored it not be ApplicationContextAware, Initializing bean but rather simply use the injected MongoMappingContext and MongoTemplate to trigger index creation. Added base-package parsing for entities annotated with @Persistent and @Document to be added to the MappingContext. Moved createPersistentEntity and createPersistentProperty methods into MongoMappingContext.
2011-03-22 21:07:19 +01:00
Jon Brisbin
027a67dd1b
Reorganized how index creation and initial entity registration are handled. It now happens when the context is refreshed and any time entities are registered with addPersistentEntity via synchronous ApplicationEvent dispatching.
2011-03-22 13:54:26 -05:00
Jon Brisbin
84aba45895
Put addPersistentEntity calls into a dedicated ApplicationEvent listener bean that gets populated by the classpath scanning done in the namespace parser.
2011-03-22 11:16:35 -05:00
Jon Brisbin
537e2e71c4
Fix for bug in handling arrays, deleted extraneous test class.
2011-03-21 12:02:05 -05:00
Jon Brisbin
a1ef9abef2
Fixes for handling Arrays, had to change index creation from event-based to synchronous for simplicity's sake.
2011-03-21 11:41:32 -05:00
Oliver Gierke
d01867b072
Fixed broken test.
...
Removed wiring a MongoTemplate as constructor argument for MongoMappingConfigurationBuilder.
2011-03-21 16:49:22 +01:00