join2 JpaRepository join using QueryProjection with DTO(kotlin) JpaRepository의 join을 사용하는 방법은 여러가지가 있습니다. 그 중 저는 QueryProjection을 이용한 방법을 사용했습니다. 코틀린 data class에서 QueryProjection을 사용하기 위해서는 아래와 같이 선언해주시면 됩니다. data class MovieListDTO @QueryProjection constructor( val MovieId: String = "", ... ) MovieInfoController @RestController @RequestMapping("/api/movieinfo") class MovieInfoController( val movieInfoService: MovieInfoServiceimpl, val movieCreatorService: M.. 2023. 3. 13. [MYSQL] Hackerrank - Binary Tree Nodes https://www.hackerrank.com/challenges/binary-search-tree-1/problem?isFullScreen=true Binary Tree Nodes | HackerRank Write a query to find the node type of BST ordered by the value of the node. www.hackerrank.com 문제 You are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N. Write a query to find the node type of Bi.. 2023. 1. 4. 이전 1 다음