-
Notifications
You must be signed in to change notification settings - Fork 5
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
[BE] issue248: 스터디 공지사항 CRUD #260
Merged
Merged
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a732031
refactor: ArticleController 이름 변경 및 PathVariable 추가
jaejae-yoo fe1ad03
feat: 스터디 공지사항 CRUD 구현
verus-j dbaedbd
refactor: 레포지토리 정리 및 ArticleType 추가
verus-j 654f8dc
refactor: PermittedParticipants 추가 (#264)
verus-j 72650c5
chore: 충돌 해결
tco0427 c570b61
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 4f3fe5a
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 fb5f2a2
refactor: 리뷰 반영
verus-j 6bbb9dd
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 5a2353b
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 52a63e4
Merge branch 'feat/248-notice' of https://github.com/woowacourse-team…
tco0427 80d1cff
fix: 네이밍 수정
tco0427 e8765d9
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
23 changes: 23 additions & 0 deletions
23
backend/src/main/java/com/woowacourse/moamoa/common/entity/ReadOnlyCollectionPersister.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,23 @@ | ||
package com.woowacourse.moamoa.common.entity; | ||
|
||
import org.hibernate.MappingException; | ||
import org.hibernate.cache.CacheException; | ||
import org.hibernate.cache.spi.access.CollectionDataAccess; | ||
import org.hibernate.mapping.Collection; | ||
import org.hibernate.persister.collection.BasicCollectionPersister; | ||
import org.hibernate.persister.spi.PersisterCreationContext; | ||
|
||
public class ReadOnlyCollectionPersister extends BasicCollectionPersister { | ||
|
||
public ReadOnlyCollectionPersister(final Collection collectionBinding, | ||
final CollectionDataAccess cacheAccessStrategy, | ||
final PersisterCreationContext creationContext) | ||
throws MappingException, CacheException { | ||
super(asInverse(collectionBinding), cacheAccessStrategy, creationContext); | ||
} | ||
|
||
private static Collection asInverse(Collection collection) { | ||
collection.setInverse(true); | ||
return collection; | ||
} | ||
} |
104 changes: 0 additions & 104 deletions
104
backend/src/main/java/com/woowacourse/moamoa/community/domain/CommunityArticle.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...n/java/com/woowacourse/moamoa/community/domain/repository/CommunityArticleRepository.java
This file was deleted.
Oops, something went wrong.
80 changes: 0 additions & 80 deletions
80
backend/src/main/java/com/woowacourse/moamoa/community/query/CommunityArticleDao.java
This file was deleted.
Oops, something went wrong.
111 changes: 0 additions & 111 deletions
111
backend/src/main/java/com/woowacourse/moamoa/community/service/CommunityArticleService.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이전에 hibernate 를 사용해서
ReadOnly
로 설정해주는 것이라고 들었던것 같긴한데..해당 코드가 어떻게 동작하는지 설명이 필요할 것 같습니다..!!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://blog.termian.dev/posts/jpa-readonly-jointable/