Merge pull request #8386 from kwoyke/BAEL-3385
BAEL-3385: Move article related code to its own package
This commit is contained in:
commit
726d880d51
|
@ -1,3 +1,4 @@
|
|||
### Relevant Articles:
|
||||
- [Access the Same In-Memory H2 Database in Multiple Spring Boot Applications](https://www.baeldung.com/spring-boot-access-h2-database-multiple-apps)
|
||||
- [Spring Boot With H2 Database](https://www.baeldung.com/spring-boot-h2-database)
|
||||
- [Hibernate @NotNull vs @Column(nullable = false)](https://www.baeldung.com/hibernate-notnull-vs-nullable)
|
|
@ -0,0 +1,12 @@
|
|||
package com.baeldung.h2db.notnull;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class NotNullVsNullableApplication {
|
||||
|
||||
public static void main(String... args) {
|
||||
SpringApplication.run(NotNullVsNullableApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.h2db.springboot.daos;
|
||||
package com.baeldung.h2db.notnull.daos;
|
||||
|
||||
import com.baeldung.h2db.springboot.models.Item;
|
||||
import com.baeldung.h2db.notnull.models.Item;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
import java.math.BigDecimal;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.h2db.springboot.models;
|
||||
package com.baeldung.h2db.notnull.models;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
|
@ -1,8 +1,7 @@
|
|||
package com.baeldung;
|
||||
package com.baeldung.h2db.notnull;
|
||||
|
||||
import com.baeldung.h2db.springboot.SpringBootH2Application;
|
||||
import com.baeldung.h2db.springboot.daos.ItemRepository;
|
||||
import com.baeldung.h2db.springboot.models.Item;
|
||||
import com.baeldung.h2db.notnull.daos.ItemRepository;
|
||||
import com.baeldung.h2db.notnull.models.Item;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -14,7 +13,7 @@ import javax.validation.ConstraintViolationException;
|
|||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = SpringBootH2Application.class)
|
||||
@SpringBootTest(classes = NotNullVsNullableApplication.class)
|
||||
public class ItemIntegrationTest {
|
||||
|
||||
@Autowired
|
Loading…
Reference in New Issue