HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
🗺️
[팀17] 영업이익 17조 💰
/
🐣
백둥이
/
MapStruct

MapStruct

https://lob-dev.tistory.com/entry/객체-변환하기-자바-코드-매핑-vs-MapStruct-vs-ModelMapper
https://pythonq.com/so/java/538376
 
@Mapping ( target = , source ) // 이렇게 하시면 더보기 편합니다
 
@OneToMany(mappedBy = "post", orphanRemoval = true) private List<Authority> authorities = new ArrayList<>(); @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "author_id") private User author; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "state_id") private PostState state; @NotNull @Column(nullable = false) private String title; @Column(name = "preview_text") private String previewText; @Column(name = "available_at") @Temporal(TemporalType.DATE) private Date availableAt; @Embedded private Point location; //////////// private String title; private String previewText; private Point location; private String availableAt; private List<String> authortities; private List<OrderImage> imageFiles; private String content; private String authorNickname;