diff --git a/DB_MIGRATION.md b/DB_MIGRATION.md index 6f36c94af..1c1584dc3 100644 --- a/DB_MIGRATION.md +++ b/DB_MIGRATION.md @@ -1,6 +1,6 @@ # DB Migration 🔀 -By using the Java Persistence API (JPA), classed annotated by `@Entity` (in the [`model`](src/main/java/ai/elimu/model) package) get mapped automatically to database tables/columns: [`src/main/resources/META-INF/jpa-persistence.xml`](https://github.com/elimu-ai/webapp/blob/main/src/main/resources/META-INF/jpa-persistence.xml) +By using the Java Persistence API (JPA), classed annotated by `@Entity` (in the [`model`](src/main/java/ai/elimu/entity) package) get mapped automatically to database tables/columns: [`src/main/resources/META-INF/jpa-persistence.xml`](https://github.com/elimu-ai/webapp/blob/main/src/main/resources/META-INF/jpa-persistence.xml) > [!IMPORTANT] > However, when _deleting, modifying or renaming_ an entity class/attribute, we have to manually update the underlying database structure. diff --git a/src/main/java/ai/elimu/dao/ApplicationDao.java b/src/main/java/ai/elimu/dao/ApplicationDao.java index 8adb1b58b..d4de53a84 100644 --- a/src/main/java/ai/elimu/dao/ApplicationDao.java +++ b/src/main/java/ai/elimu/dao/ApplicationDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.admin.Application; +import ai.elimu.entity.admin.Application; import ai.elimu.model.v2.enums.admin.ApplicationStatus; diff --git a/src/main/java/ai/elimu/dao/ApplicationVersionDao.java b/src/main/java/ai/elimu/dao/ApplicationVersionDao.java index fa3a5916b..6a4e6fa31 100644 --- a/src/main/java/ai/elimu/dao/ApplicationVersionDao.java +++ b/src/main/java/ai/elimu/dao/ApplicationVersionDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.admin.Application; -import ai.elimu.model.admin.ApplicationVersion; +import ai.elimu.entity.admin.Application; +import ai.elimu.entity.admin.ApplicationVersion; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/AudioContributionEventDao.java b/src/main/java/ai/elimu/dao/AudioContributionEventDao.java index b7fbe6e33..a2f91525b 100644 --- a/src/main/java/ai/elimu/dao/AudioContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/AudioContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.multimedia.Audio; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.AudioContributionEvent; +import ai.elimu.entity.content.multimedia.Audio; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.AudioContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/AudioDao.java b/src/main/java/ai/elimu/dao/AudioDao.java index d3dc5494b..2211ade91 100644 --- a/src/main/java/ai/elimu/dao/AudioDao.java +++ b/src/main/java/ai/elimu/dao/AudioDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.StoryBookParagraph; -import ai.elimu.model.content.Word; +import ai.elimu.entity.content.StoryBookParagraph; +import ai.elimu.entity.content.Word; import java.util.List; -import ai.elimu.model.content.multimedia.Audio; +import ai.elimu.entity.content.multimedia.Audio; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/AudioPeerReviewEventDao.java b/src/main/java/ai/elimu/dao/AudioPeerReviewEventDao.java index 25a65c5c3..de536e206 100644 --- a/src/main/java/ai/elimu/dao/AudioPeerReviewEventDao.java +++ b/src/main/java/ai/elimu/dao/AudioPeerReviewEventDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.multimedia.Audio; -import ai.elimu.model.contributor.AudioContributionEvent; -import ai.elimu.model.contributor.AudioPeerReviewEvent; -import ai.elimu.model.contributor.Contributor; +import ai.elimu.entity.content.multimedia.Audio; +import ai.elimu.entity.contributor.AudioContributionEvent; +import ai.elimu.entity.contributor.AudioPeerReviewEvent; +import ai.elimu.entity.contributor.Contributor; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/ContributorDao.java b/src/main/java/ai/elimu/dao/ContributorDao.java index 67623e3a8..af40fda38 100644 --- a/src/main/java/ai/elimu/dao/ContributorDao.java +++ b/src/main/java/ai/elimu/dao/ContributorDao.java @@ -5,7 +5,7 @@ import org.springframework.dao.DataAccessException; -import ai.elimu.model.contributor.Contributor; +import ai.elimu.entity.contributor.Contributor; public interface ContributorDao extends GenericDao { diff --git a/src/main/java/ai/elimu/dao/DbMigrationDao.java b/src/main/java/ai/elimu/dao/DbMigrationDao.java index 84ae77cc7..74b5b552e 100644 --- a/src/main/java/ai/elimu/dao/DbMigrationDao.java +++ b/src/main/java/ai/elimu/dao/DbMigrationDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.DbMigration; +import ai.elimu.entity.DbMigration; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/DeviceDao.java b/src/main/java/ai/elimu/dao/DeviceDao.java index 482c2543c..ad79cf1d6 100644 --- a/src/main/java/ai/elimu/dao/DeviceDao.java +++ b/src/main/java/ai/elimu/dao/DeviceDao.java @@ -1,6 +1,6 @@ package ai.elimu.dao; -import ai.elimu.model.Device; +import ai.elimu.entity.Device; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/EmojiDao.java b/src/main/java/ai/elimu/dao/EmojiDao.java index 087454345..f714c094c 100644 --- a/src/main/java/ai/elimu/dao/EmojiDao.java +++ b/src/main/java/ai/elimu/dao/EmojiDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; -import ai.elimu.model.content.Emoji; -import ai.elimu.model.content.Word; +import ai.elimu.entity.content.Emoji; +import ai.elimu.entity.content.Word; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/ImageContributionEventDao.java b/src/main/java/ai/elimu/dao/ImageContributionEventDao.java index abe403d44..1d3f9b958 100644 --- a/src/main/java/ai/elimu/dao/ImageContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/ImageContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.multimedia.Image; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.ImageContributionEvent; +import ai.elimu.entity.content.multimedia.Image; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.ImageContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/ImageDao.java b/src/main/java/ai/elimu/dao/ImageDao.java index 5638ae9fc..a0a8d25fd 100644 --- a/src/main/java/ai/elimu/dao/ImageDao.java +++ b/src/main/java/ai/elimu/dao/ImageDao.java @@ -1,11 +1,11 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.Word; +import ai.elimu.entity.content.Word; import org.springframework.dao.DataAccessException; -import ai.elimu.model.content.multimedia.Image; +import ai.elimu.entity.content.multimedia.Image; public interface ImageDao extends GenericDao { diff --git a/src/main/java/ai/elimu/dao/LetterContributionEventDao.java b/src/main/java/ai/elimu/dao/LetterContributionEventDao.java index 6d22f0c20..e8164ff4c 100644 --- a/src/main/java/ai/elimu/dao/LetterContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/LetterContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.Letter; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.LetterContributionEvent; +import ai.elimu.entity.content.Letter; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.LetterContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/LetterDao.java b/src/main/java/ai/elimu/dao/LetterDao.java index 1da19c6b5..19d12c49e 100644 --- a/src/main/java/ai/elimu/dao/LetterDao.java +++ b/src/main/java/ai/elimu/dao/LetterDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.Letter; +import ai.elimu.entity.content.Letter; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/LetterLearningEventDao.java b/src/main/java/ai/elimu/dao/LetterLearningEventDao.java index 5e5790856..d6cb8f4be 100644 --- a/src/main/java/ai/elimu/dao/LetterLearningEventDao.java +++ b/src/main/java/ai/elimu/dao/LetterLearningEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.admin.Application; -import ai.elimu.model.analytics.LetterLearningEvent; -import ai.elimu.model.content.Letter; +import ai.elimu.entity.admin.Application; +import ai.elimu.entity.analytics.LetterLearningEvent; +import ai.elimu.entity.content.Letter; import java.util.Calendar; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/LetterSoundContributionEventDao.java b/src/main/java/ai/elimu/dao/LetterSoundContributionEventDao.java index 088558de9..d9ea6aad2 100644 --- a/src/main/java/ai/elimu/dao/LetterSoundContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/LetterSoundContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.LetterSoundCorrespondence; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.LetterSoundCorrespondenceContributionEvent; +import ai.elimu.entity.content.LetterSoundCorrespondence; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.LetterSoundCorrespondenceContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/LetterSoundDao.java b/src/main/java/ai/elimu/dao/LetterSoundDao.java index 7c60bffab..e5c29378d 100644 --- a/src/main/java/ai/elimu/dao/LetterSoundDao.java +++ b/src/main/java/ai/elimu/dao/LetterSoundDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.Sound; -import ai.elimu.model.content.Letter; -import ai.elimu.model.content.LetterSoundCorrespondence; +import ai.elimu.entity.content.Sound; +import ai.elimu.entity.content.Letter; +import ai.elimu.entity.content.LetterSoundCorrespondence; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/LetterSoundPeerReviewEventDao.java b/src/main/java/ai/elimu/dao/LetterSoundPeerReviewEventDao.java index 196e4aee6..15a56c205 100644 --- a/src/main/java/ai/elimu/dao/LetterSoundPeerReviewEventDao.java +++ b/src/main/java/ai/elimu/dao/LetterSoundPeerReviewEventDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.LetterSoundCorrespondence; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.LetterSoundCorrespondenceContributionEvent; -import ai.elimu.model.contributor.LetterSoundCorrespondencePeerReviewEvent; +import ai.elimu.entity.content.LetterSoundCorrespondence; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.LetterSoundCorrespondenceContributionEvent; +import ai.elimu.entity.contributor.LetterSoundCorrespondencePeerReviewEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/NumberContributionEventDao.java b/src/main/java/ai/elimu/dao/NumberContributionEventDao.java index 8e19f1602..6cb7ff0cc 100644 --- a/src/main/java/ai/elimu/dao/NumberContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/NumberContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.Number; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.NumberContributionEvent; +import ai.elimu.entity.content.Number; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.NumberContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/NumberDao.java b/src/main/java/ai/elimu/dao/NumberDao.java index 612ec0ddd..5f964991b 100644 --- a/src/main/java/ai/elimu/dao/NumberDao.java +++ b/src/main/java/ai/elimu/dao/NumberDao.java @@ -2,7 +2,7 @@ import java.util.List; -import ai.elimu.model.content.Number; +import ai.elimu.entity.content.Number; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/NumberPeerReviewEventDao.java b/src/main/java/ai/elimu/dao/NumberPeerReviewEventDao.java index 083cb8f56..addccb0d7 100644 --- a/src/main/java/ai/elimu/dao/NumberPeerReviewEventDao.java +++ b/src/main/java/ai/elimu/dao/NumberPeerReviewEventDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.Number; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.NumberContributionEvent; -import ai.elimu.model.contributor.NumberPeerReviewEvent; +import ai.elimu.entity.content.Number; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.NumberContributionEvent; +import ai.elimu.entity.contributor.NumberPeerReviewEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/SoundContributionEventDao.java b/src/main/java/ai/elimu/dao/SoundContributionEventDao.java index c1349c80c..c21955dfd 100644 --- a/src/main/java/ai/elimu/dao/SoundContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/SoundContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.Sound; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.SoundContributionEvent; +import ai.elimu.entity.content.Sound; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.SoundContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/SoundDao.java b/src/main/java/ai/elimu/dao/SoundDao.java index e31fa5bd1..f01540dfb 100644 --- a/src/main/java/ai/elimu/dao/SoundDao.java +++ b/src/main/java/ai/elimu/dao/SoundDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.Sound; +import ai.elimu.entity.content.Sound; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/StoryBookChapterDao.java b/src/main/java/ai/elimu/dao/StoryBookChapterDao.java index def6ea6c2..68cf7449f 100644 --- a/src/main/java/ai/elimu/dao/StoryBookChapterDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookChapterDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.StoryBook; -import ai.elimu.model.content.StoryBookChapter; +import ai.elimu.entity.content.StoryBook; +import ai.elimu.entity.content.StoryBookChapter; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/StoryBookContributionEventDao.java b/src/main/java/ai/elimu/dao/StoryBookContributionEventDao.java index acbddd3e4..0af40d9b6 100644 --- a/src/main/java/ai/elimu/dao/StoryBookContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.StoryBook; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.StoryBookContributionEvent; +import ai.elimu.entity.content.StoryBook; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.StoryBookContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/StoryBookDao.java b/src/main/java/ai/elimu/dao/StoryBookDao.java index 53b00aa57..77d710ed8 100644 --- a/src/main/java/ai/elimu/dao/StoryBookDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.StoryBook; +import ai.elimu.entity.content.StoryBook; import ai.elimu.model.v2.enums.ReadingLevel; diff --git a/src/main/java/ai/elimu/dao/StoryBookLearningEventDao.java b/src/main/java/ai/elimu/dao/StoryBookLearningEventDao.java index b2f252cc9..119c14424 100644 --- a/src/main/java/ai/elimu/dao/StoryBookLearningEventDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookLearningEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.admin.Application; -import ai.elimu.model.analytics.StoryBookLearningEvent; -import ai.elimu.model.content.StoryBook; +import ai.elimu.entity.admin.Application; +import ai.elimu.entity.analytics.StoryBookLearningEvent; +import ai.elimu.entity.content.StoryBook; import java.util.Calendar; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/StoryBookParagraphDao.java b/src/main/java/ai/elimu/dao/StoryBookParagraphDao.java index 5dbb99731..ba5e1d922 100644 --- a/src/main/java/ai/elimu/dao/StoryBookParagraphDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookParagraphDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.StoryBookChapter; -import ai.elimu.model.content.StoryBookParagraph; +import ai.elimu.entity.content.StoryBookChapter; +import ai.elimu.entity.content.StoryBookParagraph; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/StoryBookPeerReviewEventDao.java b/src/main/java/ai/elimu/dao/StoryBookPeerReviewEventDao.java index 6a6582b12..266230af9 100644 --- a/src/main/java/ai/elimu/dao/StoryBookPeerReviewEventDao.java +++ b/src/main/java/ai/elimu/dao/StoryBookPeerReviewEventDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.StoryBook; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.StoryBookContributionEvent; -import ai.elimu.model.contributor.StoryBookPeerReviewEvent; +import ai.elimu.entity.content.StoryBook; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.StoryBookContributionEvent; +import ai.elimu.entity.contributor.StoryBookPeerReviewEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/SyllableDao.java b/src/main/java/ai/elimu/dao/SyllableDao.java index c07b027fa..265784a7c 100644 --- a/src/main/java/ai/elimu/dao/SyllableDao.java +++ b/src/main/java/ai/elimu/dao/SyllableDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.Syllable; +import ai.elimu.entity.content.Syllable; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/VideoDao.java b/src/main/java/ai/elimu/dao/VideoDao.java index 75e630b2e..6941fb0f8 100644 --- a/src/main/java/ai/elimu/dao/VideoDao.java +++ b/src/main/java/ai/elimu/dao/VideoDao.java @@ -1,7 +1,7 @@ package ai.elimu.dao; import java.util.List; -import ai.elimu.model.content.multimedia.Video; +import ai.elimu.entity.content.multimedia.Video; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/WordContributionEventDao.java b/src/main/java/ai/elimu/dao/WordContributionEventDao.java index dce673839..3a26a1c6c 100644 --- a/src/main/java/ai/elimu/dao/WordContributionEventDao.java +++ b/src/main/java/ai/elimu/dao/WordContributionEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.content.Word; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.WordContributionEvent; +import ai.elimu.entity.content.Word; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.WordContributionEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/WordDao.java b/src/main/java/ai/elimu/dao/WordDao.java index 4b9f0f2e7..491caf26b 100644 --- a/src/main/java/ai/elimu/dao/WordDao.java +++ b/src/main/java/ai/elimu/dao/WordDao.java @@ -2,7 +2,7 @@ import java.util.List; -import ai.elimu.model.content.Word; +import ai.elimu.entity.content.Word; import ai.elimu.model.v2.enums.content.WordType; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/WordLearningEventDao.java b/src/main/java/ai/elimu/dao/WordLearningEventDao.java index add068d9b..46ce04ea2 100644 --- a/src/main/java/ai/elimu/dao/WordLearningEventDao.java +++ b/src/main/java/ai/elimu/dao/WordLearningEventDao.java @@ -1,8 +1,8 @@ package ai.elimu.dao; -import ai.elimu.model.admin.Application; -import ai.elimu.model.analytics.WordLearningEvent; -import ai.elimu.model.content.Word; +import ai.elimu.entity.admin.Application; +import ai.elimu.entity.analytics.WordLearningEvent; +import ai.elimu.entity.content.Word; import java.util.Calendar; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/WordPeerReviewEventDao.java b/src/main/java/ai/elimu/dao/WordPeerReviewEventDao.java index 2617a31d6..86890e0de 100644 --- a/src/main/java/ai/elimu/dao/WordPeerReviewEventDao.java +++ b/src/main/java/ai/elimu/dao/WordPeerReviewEventDao.java @@ -1,9 +1,9 @@ package ai.elimu.dao; -import ai.elimu.model.content.Word; -import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.contributor.WordContributionEvent; -import ai.elimu.model.contributor.WordPeerReviewEvent; +import ai.elimu.entity.content.Word; +import ai.elimu.entity.contributor.Contributor; +import ai.elimu.entity.contributor.WordContributionEvent; +import ai.elimu.entity.contributor.WordPeerReviewEvent; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/jpa/ApplicationDaoJpa.java b/src/main/java/ai/elimu/dao/jpa/ApplicationDaoJpa.java index 2f42f5e80..8b13366f2 100644 --- a/src/main/java/ai/elimu/dao/jpa/ApplicationDaoJpa.java +++ b/src/main/java/ai/elimu/dao/jpa/ApplicationDaoJpa.java @@ -3,7 +3,7 @@ import java.util.List; import javax.persistence.NoResultException; import ai.elimu.dao.ApplicationDao; -import ai.elimu.model.admin.Application; +import ai.elimu.entity.admin.Application; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/jpa/ApplicationVersionDaoJpa.java b/src/main/java/ai/elimu/dao/jpa/ApplicationVersionDaoJpa.java index 5e9a48b57..6cc43f586 100644 --- a/src/main/java/ai/elimu/dao/jpa/ApplicationVersionDaoJpa.java +++ b/src/main/java/ai/elimu/dao/jpa/ApplicationVersionDaoJpa.java @@ -3,8 +3,8 @@ import java.util.List; import javax.persistence.NoResultException; import ai.elimu.dao.ApplicationVersionDao; -import ai.elimu.model.admin.Application; -import ai.elimu.model.admin.ApplicationVersion; +import ai.elimu.entity.admin.Application; +import ai.elimu.entity.admin.ApplicationVersion; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/jpa/AudioContributionEventDaoJpa.java b/src/main/java/ai/elimu/dao/jpa/AudioContributionEventDaoJpa.java index 96fa37d05..9d3d44584 100644 --- a/src/main/java/ai/elimu/dao/jpa/AudioContributionEventDaoJpa.java +++ b/src/main/java/ai/elimu/dao/jpa/AudioContributionEventDaoJpa.java @@ -1,9 +1,9 @@ package ai.elimu.dao.jpa; -import ai.elimu.model.contributor.AudioContributionEvent; +import ai.elimu.entity.contributor.AudioContributionEvent; import ai.elimu.dao.AudioContributionEventDao; -import ai.elimu.model.content.multimedia.Audio; -import ai.elimu.model.contributor.Contributor; +import ai.elimu.entity.content.multimedia.Audio; +import ai.elimu.entity.contributor.Contributor; import java.util.List; import org.springframework.dao.DataAccessException; diff --git a/src/main/java/ai/elimu/dao/jpa/AudioDaoJpa.java b/src/main/java/ai/elimu/dao/jpa/AudioDaoJpa.java index 7cf3ef27f..1521bf5e8 100644 --- a/src/main/java/ai/elimu/dao/jpa/AudioDaoJpa.java +++ b/src/main/java/ai/elimu/dao/jpa/AudioDaoJpa.java @@ -4,12 +4,12 @@ import javax.persistence.NoResultException; import ai.elimu.dao.AudioDao; -import ai.elimu.model.content.StoryBookParagraph; -import ai.elimu.model.content.Word; +import ai.elimu.entity.content.StoryBookParagraph; +import ai.elimu.entity.content.Word; import org.springframework.dao.DataAccessException; -import ai.elimu.model.content.multimedia.Audio; +import ai.elimu.entity.content.multimedia.Audio; public class AudioDaoJpa extends GenericDaoJpa