Rename sample datajpapersist to datapersist

- As it now supports mongo/redis using profiles,
  remove jpa from name.
- Change build and docs.
- Backport #509
This commit is contained in:
jvalkeal
2018-02-21 17:26:19 +02:00
parent 282d395ba0
commit 9788d2dfeb
11 changed files with 57 additions and 29 deletions

View File

@@ -121,8 +121,8 @@ project('spring-statemachine-samples-datajpa') {
}
}
project('spring-statemachine-samples-datajpapersist') {
description = 'Spring State Machine Data Jpa Persist Sample'
project('spring-statemachine-samples-datapersist') {
description = 'Spring State Machine Data Persist Sample'
dependencies {
compile project(":spring-statemachine-boot")
compile project(":spring-statemachine-data-common:spring-statemachine-data-jpa")

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package demo.datajpapersist;
package demo.datapersist;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package demo.datajpapersist;
package demo.datapersist;
import java.util.EnumSet;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package demo.datajpapersist;
package demo.datapersist;
import java.util.EnumSet;
import java.util.List;
@@ -29,8 +29,8 @@ import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import demo.datajpapersist.StateMachineConfig.Events;
import demo.datajpapersist.StateMachineConfig.States;
import demo.datapersist.StateMachineConfig.Events;
import demo.datapersist.StateMachineConfig.States;
@Controller
public class StateMachineController {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package demo.datajpapersist;
package demo.datapersist;
import java.util.LinkedList;
import java.util.List;
@@ -22,8 +22,8 @@ import org.springframework.statemachine.StateContext;
import org.springframework.statemachine.StateContext.Stage;
import org.springframework.statemachine.listener.StateMachineListenerAdapter;
import demo.datajpapersist.StateMachineConfig.Events;
import demo.datajpapersist.StateMachineConfig.States;
import demo.datapersist.StateMachineConfig.Events;
import demo.datapersist.StateMachineConfig.States;
public class StateMachineLogListener extends StateMachineListenerAdapter<States, Events> {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package demo.datajpapersist;
package demo.datapersist;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.containsString;
@@ -34,7 +34,8 @@ import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;
import demo.datajpapersist.Application;
import demo.datapersist.Application;
import demo.datapersist.StateMachineController;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = { Application.class })