-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aea24da
commit a6b65e3
Showing
81 changed files
with
528 additions
and
1,024 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_App</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>FlashCards_Repository</artifactId> | ||
<packaging>jar</packaging> | ||
<name>FlashCards_Repository</name> | ||
<description>FlashCards_Repository description</description> | ||
<properties> | ||
<skip.coveralls>false</skip.coveralls> | ||
</properties> | ||
<scm> | ||
<connection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</connection> | ||
<url>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</url> | ||
<developerConnection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</developerConnection> | ||
</scm> | ||
<dependencies> | ||
<!-- FlashCards project module dependencies --> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Domain</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<finalName>FlashCards_Repository</finalName> | ||
</build> | ||
</project> |
5 changes: 2 additions & 3 deletions
5
...itory/springdata/FlashCardRepository.java → ...cards/repository/FlashCardRepository.java
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
11 changes: 6 additions & 5 deletions
11
...s/repository/jpa/base/CrudRepository.java → ...s/repository/FlashCardsAppRepository.java
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
9 changes: 9 additions & 0 deletions
9
FlashCards_Repository/src/main/java/org/robbins/flashcards/repository/TagRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
package org.robbins.flashcards.repository; | ||
|
||
import org.robbins.flashcards.model.Tag; | ||
|
||
public interface TagRepository extends FlashCardsAppRepository<Tag, Long> { | ||
|
||
Tag findByName(String name); | ||
} |
9 changes: 9 additions & 0 deletions
9
FlashCards_Repository/src/main/java/org/robbins/flashcards/repository/UserRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
package org.robbins.flashcards.repository; | ||
|
||
import org.robbins.flashcards.model.User; | ||
|
||
public interface UserRepository extends FlashCardsAppRepository<User, Long> { | ||
|
||
User findUserByOpenid(String openid); | ||
} |
File renamed without changes.
127 changes: 72 additions & 55 deletions
127
FlashCards_Service_Jpa/pom.xml → FlashCards_Repository_Jpa/pom.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_App</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>FlashCards_Service_Jpa</artifactId> | ||
<packaging>jar</packaging> | ||
<name>FlashCards_Service_Jpa</name> | ||
<description>FlashCards_Service_Jpa description</description> | ||
<properties> | ||
<skip.coveralls>false</skip.coveralls> | ||
</properties> | ||
<scm> | ||
<connection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</connection> | ||
<url>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</url> | ||
<developerConnection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</developerConnection> | ||
</scm> | ||
<dependencies> | ||
<!-- FlashCards project module dependencies --> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Service</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<!-- test dependencies --> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Test</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.dbunit</groupId> | ||
<artifactId>dbunit</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.springtestdbunit</groupId> | ||
<artifactId>spring-test-dbunit</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_App</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>FlashCards_Repository_Jpa</artifactId> | ||
<packaging>jar</packaging> | ||
<name>FlashCards_Repository_Jpa</name> | ||
<description>FlashCards_Repository_Jpa description</description> | ||
<properties> | ||
<skip.coveralls>false</skip.coveralls> | ||
</properties> | ||
<scm> | ||
<connection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</connection> | ||
<url>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</url> | ||
<developerConnection>scm:git:git@github.com:justinhrobbins/FlashCards_App.git</developerConnection> | ||
</scm> | ||
<dependencies> | ||
<!-- FlashCards project module dependencies --> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Service</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Repository_Jpa_Commons</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-orm</artifactId> | ||
</dependency> | ||
|
||
<!-- ORM dependencies --> | ||
<dependency> | ||
<groupId>org.hibernate</groupId> | ||
<artifactId>hibernate-entitymanager</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> | ||
|
||
<!-- test dependencies --> | ||
<dependency> | ||
<groupId>org.robbins.flashcards</groupId> | ||
<artifactId>FlashCards_Test</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.dbunit</groupId> | ||
<artifactId>dbunit</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.springtestdbunit</groupId> | ||
<artifactId>spring-test-dbunit</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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
6 changes: 3 additions & 3 deletions
6
...s/repository/jpa/FlashCardRepository.java → ...cards/repository/FlashCardRepository.java
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
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
28 changes: 28 additions & 0 deletions
28
...pository_Jpa/src/main/java/org/robbins/flashcards/repository/FlashCardsAppRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
package org.robbins.flashcards.repository; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.domain.Sort; | ||
|
||
public interface FlashCardsAppRepository<T, ID extends Serializable> { | ||
|
||
long count(); | ||
|
||
T save(T entity); | ||
|
||
T findOne(ID id); | ||
|
||
void delete(ID id); | ||
|
||
void delete(T entity); | ||
|
||
List<T> findAll(); | ||
|
||
List<T> findAll(Sort sort); | ||
|
||
Page<T> findAll(Pageable page); | ||
} |
10 changes: 10 additions & 0 deletions
10
FlashCards_Repository_Jpa/src/main/java/org/robbins/flashcards/repository/TagRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
package org.robbins.flashcards.repository; | ||
|
||
import org.robbins.flashcards.model.Tag; | ||
import org.robbins.flashcards.repository.FlashCardsAppRepository; | ||
|
||
public interface TagRepository extends FlashCardsAppRepository<Tag, Long> { | ||
|
||
Tag findByName(String name); | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...hCards_Repository_Jpa/src/main/java/org/robbins/flashcards/repository/UserRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
package org.robbins.flashcards.repository; | ||
|
||
import org.robbins.flashcards.model.User; | ||
import org.robbins.flashcards.repository.FlashCardsAppRepository; | ||
|
||
public interface UserRepository extends FlashCardsAppRepository<User, Long> { | ||
|
||
User findUserByOpenid(String openid); | ||
} |
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
Oops, something went wrong.