Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Replace DAO class with JPARepository due to SQL maintenance issues #212

Closed
15 of 17 tasks
kagemomiji opened this issue May 1, 2023 · 1 comment · Fixed by #342
Closed
15 of 17 tasks
Assignees
Labels
enhancement New feature or request refactor
Milestone

Comments

@kagemomiji
Copy link
Owner

kagemomiji commented May 1, 2023

Scope

Other

What problem

The current implementation uses DAO classes to handle SQL queries, which can be difficult to maintain over time. DAO classes require developers to write raw SQL queries, which can lead to issues with readability and maintainability.

Feature

To address these issues, I recommend replacing DAO classes with JPARepository. JPARepository is a higher-level abstraction layer that eliminates the need to write raw SQL queries. This approach is more developer-friendly and easier to maintain over time. By using JPARepository, developers can focus on writing clean, readable code that is easy to maintain, rather than spending time on low-level SQL queries.

Overall, by replacing DAO classes with JPARepository, we can improve the maintainability of our codebase and reduce development time and costs.

  • AlbumDao.java
  • ArtistDao.java
  • AvatarDao.java
  • CoverArtDao.java
  • DatabaseDao.java
  • InternetRadioDao.java
  • MediaFileDao.java
  • MusicFolderDao.java
  • PlayerDao.java
  • PlaylistDao.java
  • PlayQueueDao.java
  • PodcastDao.java
  • RatingDao.java
  • ShareDao.java
  • SonosLinkDao.java
  • TranscodingDao.java
  • UserDao.java
@kagemomiji kagemomiji added the enhancement New feature or request label May 1, 2023
@kagemomiji kagemomiji added this to the 11.1.3 milestone May 1, 2023
@kagemomiji kagemomiji self-assigned this May 1, 2023
@kagemomiji kagemomiji moved this from NoStatus to Todo in kagemomiji/airsonic-advanced project May 1, 2023
kagemomiji added a commit that referenced this issue Aug 7, 2023
kagemomiji added a commit that referenced this issue Aug 8, 2023
kagemomiji added a commit that referenced this issue Aug 9, 2023
#212 implement ShareRepository to replace shareDao
@kagemomiji kagemomiji moved this from Todo to In Progress in kagemomiji/airsonic-advanced project Aug 9, 2023
kagemomiji added a commit that referenced this issue Aug 19, 2023
…repository

#212 implement repository for CoverArt
kagemomiji added a commit that referenced this issue Aug 21, 2023
kagemomiji added a commit that referenced this issue Aug 25, 2023
kagemomiji added a commit that referenced this issue Aug 29, 2023
…ository

#212 implement avatar repository for replaement of avatardao
kagemomiji added a commit that referenced this issue Nov 27, 2023
getHighestRatedAlbums method
@8bitbuddhist
Copy link

This is a huge undertaking and I respect the effort that you're putting into this project. Thank you for keeping Airsonic alive! ❤

kagemomiji added a commit that referenced this issue Nov 29, 2023
kagemomiji added a commit that referenced this issue Nov 30, 2023
findByFolderInAndMediaTypeAndArtistAndTitleAndPresentTrue
method in MediaFileRepository
kagemomiji added a commit that referenced this issue Nov 30, 2023
kagemomiji added a commit that referenced this issue Dec 1, 2023
kagemomiji added a commit that referenced this issue Dec 1, 2023
kagemomiji added a commit that referenced this issue Dec 1, 2023
kagemomiji added a commit that referenced this issue Dec 2, 2023
kagemomiji added a commit that referenced this issue Dec 3, 2023
#212 implemented MediaFileRepository to replace MediaFileDao
kagemomiji added a commit that referenced this issue Jan 2, 2024
thewriteway pushed a commit to thewriteway/airsonic-advanced that referenced this issue Jan 21, 2024
kagemomiji added a commit that referenced this issue Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Development

Successfully merging a pull request may close this issue.

2 participants