1
有沒有辦法在下面的例子中不指定所有的類型參數?我嘗試過使用「記錄」,但無濟於事。我必須指定jooq結果類型嗎?
Map<Integer,Result<Record6<Integer, String, Integer, String, String, Integer>>> records = db()
.select(TRANSITIONS.TRANSITION_ID, TRANSITIONS.TYPE, POSES.POSE_ID, POSES.NAME, IMAGES.URL, IMAGES.SCORE.max())
.from(TRANSITIONS
.join(POSES).on(POSES.POSE_ID.equal(TRANSITIONS.TO_POSE_ID))
.join(IMAGES).on(IMAGES.POSE_ID.equal(POSES.POSE_ID)))
.where(TRANSITIONS.FROM_POSE_ID.equal(fromPoseId))
.groupBy(TRANSITIONS.TRANSITION_ID, TRANSITIONS.TYPE, POSES.POSE_ID, POSES.NAME, IMAGES.URL)
.fetchGroups(TRANSITIONS.TRANSITION_ID);