JPA 사용자 지정 반환 결과 세트
                                            
 3007 단어  JavaWEB
                    
    @Query("select new com.mytest.vo.VideoVO(u.id,v.userId,v.audioId,v.videoDesc,v.videoPath,v.videoSeconds,v.videoWidth,v.videoHeight) from Video v,User u where v.userId = u.id")
    public List<VideoVO> findVideoWithAuthor();
그다음에 대상을 추가하는 구조법이 해결됐어요.
    public VideoVO(String id, String userId, String audioId, String videoDesc, String videoPath, Float videoSeconds, Integer videoWidth, Integer videoHeight) {
        this.id = id;
        this.userId = userId;
        this.audioId = audioId;
        this.videoDesc = videoDesc;
        this.videoPath = videoPath;
        this.videoSeconds = videoSeconds;
        this.videoWidth = videoWidth;
        this.videoHeight = videoHeight;
    }
페이지가 나뉘어져 있으면 이전과 같이 Pageable 대상을 전송하는 절차가 이전과 같습니다!