diff --git a/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/Board.java b/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/Board.java index 363155be..92a675cb 100644 --- a/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/Board.java +++ b/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/Board.java @@ -37,6 +37,8 @@ import lombok.Value; import lombok.With; +import com.navercorp.spring.data.jdbc.plus.sql.annotation.SqlTableAlias; + /** * @author Myeonghyeon Lee */ @@ -57,6 +59,7 @@ public class Board { @Builder.Default private List posts = new ArrayList<>(); + @SqlTableAlias("b_audit") @Column("board_id") private Audit audit; diff --git a/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/PostDto.java b/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/PostDto.java index 936efe81..0ee4c48d 100644 --- a/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/PostDto.java +++ b/guide-projects/plus-sql-java-groovy-guide/src/main/java/com/navercorp/spring/data/jdbc/plus/sql/guide/board/PostDto.java @@ -28,6 +28,7 @@ import lombok.Builder; import lombok.Value; +import com.navercorp.spring.data.jdbc.plus.sql.annotation.SqlTableAlias; import com.navercorp.spring.data.jdbc.plus.sql.guide.board.Board.Label; import com.navercorp.spring.data.jdbc.plus.sql.guide.board.Board.Post; @@ -44,6 +45,7 @@ public class PostDto { @Column Post post; + @SqlTableAlias("p_labels") @MappedCollection(idColumn = "board_id") Set