사용자 도구

사이트 도구


java:jpa:entity

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
java:jpa:entity [2020/07/05 10:31]
kwon37xi [Intellij DB 스키마로부터 JPA Entity 생성하기]
java:jpa:entity [2020/07/05 11:14]
kwon37xi
줄 11: 줄 11:
   * [[:intellij_idea|IntelliJ IDEA]]에서 **Database** 연결을 생성하고 Table 을 우클릭하여, **Scripted Extensions** 에서 **Go To Scripts Directory** 를 실행한다.   * [[:intellij_idea|IntelliJ IDEA]]에서 **Database** 연결을 생성하고 Table 을 우클릭하여, **Scripted Extensions** 에서 **Go To Scripts Directory** 를 실행한다.
   * 해당 디렉토리에 [[https://gist.github.com/kwon37xi/404b075c2258e1df3ccbb04fdd0be525|Generate JPA Entities.groovy]] gist 소스를 복사해 넣는다.   * 해당 디렉토리에 [[https://gist.github.com/kwon37xi/404b075c2258e1df3ccbb04fdd0be525|Generate JPA Entities.groovy]] gist 소스를 복사해 넣는다.
 +    * [[https://gist.github.com/virtualadrian/519fe0dc6658fe60500067bee3134c97|IntelliJ Generators For Entity ( JPA Entity, View Model, Rest Controller ) - WIP plz comment with desires -]]
   * 이제 다시 **Scripted Extensions -> Generate JPA Entities.groovy** 를 선택하면 Entity 소스가 생성된다.   * 이제 다시 **Scripted Extensions -> Generate JPA Entities.groovy** 를 선택하면 Entity 소스가 생성된다.
   * [[java:lombok|Lombok]] 기반이므로 lombok 이 필요하다.   * [[java:lombok|Lombok]] 기반이므로 lombok 이 필요하다.
java/jpa/entity.txt · 마지막으로 수정됨: 2022/11/09 11:17 저자 kwon37xi