Skip to content

Commit

Permalink
fuxx that jpql error resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
jyeonjyan committed Jun 19, 2021
1 parent e90c0ec commit 88d0808
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public interface TableRepository extends JpaRepository<TableDomain, Long>{
"FROM TableDomain table" )
Long amountUncomfortable();

@Query("SELECT new com.moment.the.dto.TableViewDto(table.boardIdx, table.content, table.goods, answer)" +
@Query("SELECT new com.moment.the.table.dto.TableViewDto(table.boardIdx, table.content, table.goods, answer)" +
"FROM TableDomain table LEFT JOIN table.answerDomain answer " +
"ORDER BY table.boardIdx DESC "
)
List<TableViewDto> tableViewAll();

@Query("SELECT new com.moment.the.dto.TableViewDto(table.boardIdx, table.content, table.goods, answer)" +
@Query("SELECT new com.moment.the.table.dto.TableViewDto(table.boardIdx, table.content, table.goods, answer)" +
"FROM TableDomain table LEFT JOIN table.answerDomain answer " +
"ORDER BY table.goods DESC "
)
Expand Down

0 comments on commit 88d0808

Please sign in to comment.