This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../paper-slider/paper-slider.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.data.mongodb.repository.MongoRepository; | |
import com.arthurportas.domain.mongo.entities.User; | |
public interface UserRepository extends MongoRepository<User, Long> { | |
User findBySid(UUID userSid); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.config; | |
import com.github.fakemongo.Fongo; | |
import com.mongodb.Mongo; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.data.mongodb.config.AbstractMongoConfiguration; | |
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"data": [ | |
{ | |
"id": "119bbacd-9c03-4044-867f-4c26e8f715f6", | |
"firstName": "Arthur", | |
"lastName": "Portas", | |
"email": "arthurportas[AT]gmail.com" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.unit.repository; | |
import com.arthurportas.mongodb.example.repository.UserRepository; | |
import com.lordofthejars.nosqlunit.annotation.UsingDataSet; | |
import com.lordofthejars.nosqlunit.core.LoadStrategyEnum; | |
import com.lordofthejars.nosqlunit.mongodb.MongoDbRule; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.slf4j.Logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.mongodb.example.repository; | |
import com.arthurportas.mongodb.example.domain.User; | |
import org.springframework.data.mongodb.repository.MongoRepository; | |
import org.springframework.stereotype.Repository; | |
/** | |
* Created by arthurportas on 21/01/2017. | |
*/ | |
@Repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.mongodb.example.domain; | |
import lombok.*; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
/** | |
* Created by arthurportas on 21/01/2017. | |
*/ | |
@Getter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.mongodb.example.domain; | |
import lombok.*; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
import java.time.ZonedDateTime; | |
import java.util.Date; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arthurportas.mongodb.example.repository; | |
import com.arthurportas.mongodb.example.domain.User; | |
import org.springframework.data.mongodb.repository.MongoRepository; | |
import org.springframework.stereotype.Repository; | |
import java.time.ZonedDateTime; | |
import java.util.Date; | |
import java.util.List; |
OlderNewer