forked from elimu-ai/webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore: elimu-ai#1677 Rename LetterSoundCorrespondence to Lett…
…erSound" This reverts commit 53371c0.
- Loading branch information
Showing
25 changed files
with
139 additions
and
129 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
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,18 +1,17 @@ | ||
package ai.elimu.dao; | ||
|
||
import ai.elimu.model.content.LetterSound; | ||
import ai.elimu.model.content.Sound; | ||
import ai.elimu.model.content.Letter; | ||
|
||
import ai.elimu.model.content.LetterSoundCorrespondence; | ||
import java.util.List; | ||
|
||
import org.springframework.dao.DataAccessException; | ||
|
||
public interface LetterSoundDao extends GenericDao<LetterSound> { | ||
public interface LetterSoundDao extends GenericDao<LetterSoundCorrespondence> { | ||
|
||
LetterSound read(List<Letter> letters, List<Sound> sounds) throws DataAccessException; | ||
LetterSoundCorrespondence read(List<Letter> letters, List<Sound> sounds) throws DataAccessException; | ||
|
||
List<LetterSound> readAllOrderedByUsage() throws DataAccessException; | ||
List<LetterSoundCorrespondence> readAllOrderedByUsage() throws DataAccessException; | ||
|
||
List<LetterSound> readAllOrderedByLettersLength() throws DataAccessException; | ||
List<LetterSoundCorrespondence> readAllOrderedByLettersLength() throws DataAccessException; | ||
} |
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
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
12 changes: 6 additions & 6 deletions
12
src/main/java/ai/elimu/logic/converters/StringToLetterSoundCorrespondenceConverter.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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
package ai.elimu.logic.converters; | ||
|
||
import ai.elimu.model.content.LetterSound; | ||
import org.apache.commons.lang.StringUtils; | ||
import ai.elimu.model.content.LetterSoundCorrespondence; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.core.convert.converter.Converter; | ||
import ai.elimu.dao.LetterSoundDao; | ||
|
||
public class StringToLetterSoundCorrespondenceConverter implements Converter<String, LetterSound> { | ||
public class StringToLetterSoundCorrespondenceConverter implements Converter<String, LetterSoundCorrespondence> { | ||
|
||
@Autowired | ||
private LetterSoundDao letterSoundDao; | ||
|
||
/** | ||
* Convert LetterSound id to LetterSound entity | ||
* Convert LetterSoundCorrespondence id to LetterSoundCorrespondence entity | ||
*/ | ||
public LetterSound convert(String id) { | ||
public LetterSoundCorrespondence convert(String id) { | ||
if (StringUtils.isBlank(id)) { | ||
return null; | ||
} else { | ||
Long letterSoundCorrespondenceId = Long.parseLong(id); | ||
LetterSound letterSound = letterSoundDao.read(letterSoundCorrespondenceId); | ||
return letterSound; | ||
LetterSoundCorrespondence letterSoundCorrespondence = letterSoundDao.read(letterSoundCorrespondenceId); | ||
return letterSoundCorrespondence; | ||
} | ||
} | ||
} |
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
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
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
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.