Skip to content

Commit ccf981b

Browse files
author
Thomas Risberg
committed
DATADOC-271 Re-packaging Mongo cross-store support, removing 'document' in package name
1 parent 8a43b4b commit ccf981b

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.persistence.mongodb;
1+
package org.springframework.data.mongodb.crossstore;
22

33
import org.springframework.data.persistence.ChangeSetBacked;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.persistence.mongodb;
1+
package org.springframework.data.mongodb.crossstore;
22

33
import javax.persistence.EntityManagerFactory;
44

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.persistence.mongodb;
1+
package org.springframework.data.mongodb.crossstore;
22

33
import java.lang.reflect.Field;
44

@@ -13,8 +13,8 @@ import org.aspectj.lang.reflect.FieldSignature;
1313

1414
import org.springframework.dao.DataAccessException;
1515

16-
import org.springframework.data.persistence.mongodb.RelatedDocument;
17-
import org.springframework.data.persistence.mongodb.DocumentBacked;
16+
import org.springframework.data.mongodb.crossstore.RelatedDocument;
17+
import org.springframework.data.mongodb.crossstore.DocumentBacked;
1818
import org.springframework.data.persistence.ChangeSetBackedTransactionSynchronization;
1919
import org.springframework.data.persistence.ChangeSet;
2020
import org.springframework.data.persistence.ChangeSetPersister;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.data.persistence.mongodb;
17+
package org.springframework.data.mongodb.crossstore;
1818

1919
import java.lang.annotation.ElementType;
2020
import java.lang.annotation.Retention;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.document.persistence;
1+
package org.springframework.data.mongodb.crossstore;
22

33
import javax.persistence.EntityManager;
44
import javax.persistence.PersistenceContext;
@@ -7,10 +7,10 @@
77
import org.junit.Test;
88
import org.junit.runner.RunWith;
99
import org.springframework.beans.factory.annotation.Autowired;
10-
import org.springframework.data.document.persistence.test.Address;
11-
import org.springframework.data.document.persistence.test.Person;
12-
import org.springframework.data.document.persistence.test.Resume;
1310
import org.springframework.data.mongodb.core.MongoTemplate;
11+
import org.springframework.data.mongodb.crossstore.test.Address;
12+
import org.springframework.data.mongodb.crossstore.test.Person;
13+
import org.springframework.data.mongodb.crossstore.test.Resume;
1414
import org.springframework.test.annotation.Rollback;
1515
import org.springframework.test.context.ContextConfiguration;
1616
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.document.persistence.test;
1+
package org.springframework.data.mongodb.crossstore.test;
22

33
public class Address {
44

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package org.springframework.data.document.persistence.test;
1+
package org.springframework.data.mongodb.crossstore.test;
22

33
import javax.persistence.Entity;
44
import javax.persistence.Id;
55

6-
import org.springframework.data.persistence.mongodb.RelatedDocument;
6+
import org.springframework.data.mongodb.crossstore.RelatedDocument;
77

88
@Entity
99
public class Person {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.data.document.persistence.test;
1+
package org.springframework.data.mongodb.crossstore.test;
22

33
import org.apache.commons.logging.Log;
44
import org.apache.commons.logging.LogFactory;

spring-data-mongodb-cross-store/src/test/resources/META-INF/persistence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
55
<persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
66
<provider>org.hibernate.ejb.HibernatePersistence</provider>
7-
<class>org.springframework.data.document.persistence.test.Person</class>
7+
<class>org.springframework.data.mongodb.crossstore.test.Person</class>
88
<properties>
99
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
1010
<!--value='create' to build a new database on each run; value='update' to modify an existing database; value='create-drop' means the same as 'create' but also drops tables when Hibernate closes; value='validate' makes no changes to the database-->

spring-data-mongodb-cross-store/src/test/resources/META-INF/spring/applicationContext.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<context:spring-configured/>
1515

16-
<context:component-scan base-package="org.springframework.persistence.test">
16+
<context:component-scan base-package="org.springframework.persistence.mongodb.test">
1717
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
1818
</context:component-scan>
1919

@@ -38,12 +38,12 @@
3838
<bean class="org.springframework.data.mongodb.core.MongoExceptionTranslator"/>
3939

4040
<!-- Mongo aspect config -->
41-
<bean class="org.springframework.data.persistence.mongodb.MongoDocumentBacking"
41+
<bean class="org.springframework.data.mongodb.crossstore.MongoDocumentBacking"
4242
factory-method="aspectOf">
4343
<property name="changeSetPersister" ref="mongoChangeSetPersister"/>
4444
</bean>
4545
<bean id="mongoChangeSetPersister"
46-
class="org.springframework.data.persistence.mongodb.MongoChangeSetPersister">
46+
class="org.springframework.data.mongodb.crossstore.MongoChangeSetPersister">
4747
<property name="mongoTemplate" ref="mongoTemplate"/>
4848
<property name="entityManagerFactory" ref="entityManagerFactory"/>
4949
</bean>

0 commit comments

Comments
 (0)