Renamed mvc package, fix bug in tests.

This commit is contained in:
Jon Brisbin
2012-03-27 09:36:43 -05:00
parent 26a52332ae
commit 7f907c75cc
23 changed files with 35 additions and 43 deletions

View File

@@ -21,4 +21,4 @@ dependencies {
// Repository Exporter support
compile project(":repository")
}
}

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import java.io.ByteArrayOutputStream;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import java.net.URI;
import java.util.ArrayList;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import java.io.BufferedReader;
import java.io.IOException;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import java.util.Arrays;
import java.util.HashMap;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import javax.servlet.http.HttpServletRequest;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.mvc;
package org.springframework.data.rest.webmvc;
import java.io.PrintWriter;
import java.util.List;

View File

@@ -1,13 +1,13 @@
package org.springframework.data.rest.mvc.spec
package org.springframework.data.rest.webmvc.spec
import org.codehaus.jackson.map.ObjectMapper
import org.codehaus.jackson.map.ser.CustomSerializerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.rest.core.SimpleLink
import org.springframework.data.rest.core.util.FluentBeanSerializer
import org.springframework.data.rest.mvc.RepositoryRestConfiguration
import org.springframework.data.rest.mvc.RepositoryRestController
import org.springframework.data.rest.mvc.RepositoryRestMvcConfiguration
import org.springframework.data.rest.webmvc.RepositoryRestConfiguration
import org.springframework.data.rest.webmvc.RepositoryRestController
import org.springframework.data.rest.webmvc.RepositoryRestMvcConfiguration
import org.springframework.http.HttpStatus
import org.springframework.http.server.ServletServerHttpRequest
import org.springframework.mock.web.MockHttpServletRequest

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import org.springframework.data.repository.CrudRepository;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import java.util.List;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import java.util.Arrays;
import java.util.HashMap;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import org.springframework.data.repository.CrudRepository;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.rest.test.mvc;
package org.springframework.data.rest.test.webmvc;
import org.springframework.data.repository.CrudRepository;

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="jpa.sample">
<class>org.springframework.data.rest.test.mvc.Person</class>
<class>org.springframework.data.rest.test.mvc.Profile</class>
<class>org.springframework.data.rest.test.mvc.Address</class>
<class>org.springframework.data.rest.test.webmvc.Person</class>
<class>org.springframework.data.rest.test.webmvc.Profile</class>
<class>org.springframework.data.rest.test.webmvc.Address</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.connection.url" value="jdbc:hsqldb:mem:spring"/>

View File

@@ -7,9 +7,9 @@
<import resource="shared.xml"/>
<jpa:repositories base-package="org.springframework.data.rest.test.mvc"/>
<jpa:repositories base-package="org.springframework.data.rest.test.webmvc"/>
<bean class="org.springframework.data.rest.test.mvc.PersonLoader">
<bean class="org.springframework.data.rest.test.webmvc.PersonLoader">
<property name="personRepository" ref="personRepository"/>
<property name="profileRepository" ref="profileRepository"/>
<property name="addressRepository" ref="addressRepository"/>