-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#444 Add a feature to register "like" on comment
- Loading branch information
1 parent
4fde788
commit e4b1ba6
Showing
37 changed files
with
1,267 additions
and
93 deletions.
There are no files selected for viewing
Binary file not shown.
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
31 changes: 31 additions & 0 deletions
31
src/main/java/org/support/project/knowledge/dao/LikeCommentsDao.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,31 @@ | ||
package org.support.project.knowledge.dao; | ||
|
||
import org.support.project.di.Container; | ||
import org.support.project.di.DI; | ||
import org.support.project.di.Instance; | ||
import org.support.project.knowledge.dao.gen.GenLikeCommentsDao; | ||
|
||
/** | ||
* コメントのイイネ | ||
*/ | ||
@DI(instance = Instance.Singleton) | ||
public class LikeCommentsDao extends GenLikeCommentsDao { | ||
|
||
/** SerialVersion */ | ||
private static final long serialVersionUID = 1L; | ||
/** | ||
* Get instance from DI container. | ||
* @return instance | ||
*/ | ||
public static LikeCommentsDao get() { | ||
return Container.getComp(LikeCommentsDao.class); | ||
} | ||
|
||
public Long selectOnCommentNo(Long commentNo) { | ||
String sql = "SELECT COUNT(*) FROM LIKE_COMMENTS WHERE COMMENT_NO = ?"; | ||
return super.executeQuerySingle(sql, Long.class, commentNo); | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.