Skip to content

Commit

Permalink
[api-server-v1] update: TextBlockDTO - @lob 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gdtknight committed Oct 5, 2023
1 parent 560c5d7 commit 39725a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package kr.joberchip.server.v1.block.controller.dto;

import javax.persistence.Lob;
import kr.joberchip.core.block.TextBlock;

public record TextBlockDTO(
String content, Integer x, Integer y, Integer w, Integer h, Boolean visible) {
@Lob String content, Integer x, Integer y, Integer w, Integer h, Boolean visible) {
public TextBlock toEntity() {
return TextBlock.of(content, x, y, w, h);
}
Expand Down

0 comments on commit 39725a2

Please sign in to comment.