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:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
@@ -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> {
|
||||
|
||||
@@ -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 })
|
||||
Reference in New Issue
Block a user