Add Spring Data MongoDB using the Spring Boot Starter to the Spring Boot application classpath.
Experiment with adding SD for Apache Geode's @Region mapping annotation as well as SD MongoDB's @Document mapping annotation and the effects on Spring Boot's auto-configuration support for SD Repositories when multiple data store providers are on the Spring Boot application classpath. Resolves gh-51.
This commit is contained in:
@@ -17,6 +17,7 @@ dependencies {
|
||||
implementation "org.assertj:assertj-core"
|
||||
implementation "org.projectlombok:lombok"
|
||||
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
||||
implementation "org.springframework.boot:spring-boot-starter-data-mongodb"
|
||||
implementation "org.springframework.geode:spring-geode-starter:$version"
|
||||
|
||||
runtime "org.hsqldb:hsqldb"
|
||||
|
||||
@@ -37,6 +37,8 @@ import lombok.ToString;
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
//@Document
|
||||
//@Region("Contacts")
|
||||
@Table(name = "Contacts")
|
||||
@ToString(of = "name")
|
||||
@EqualsAndHashCode(of = "name")
|
||||
|
||||
@@ -28,6 +28,7 @@ import example.app.model.Contact;
|
||||
* @see example.app.model.Contact
|
||||
* @since 1.2.0
|
||||
*/
|
||||
//public interface ContactRepository extends JpaRepository<Contact, String> {
|
||||
public interface ContactRepository extends CrudRepository<Contact, String> {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user