-
[Spring Data JPA] @Entity 와 @Table 의 차이점Miscellaneous Dictionary 2022. 8. 24. 21:10
https://walkingtechie.blogspot.com/2019/06/difference-between-entity-and-table.html
Difference between Entity and Table annotation
@javax.persistence.Entity:Specifies that the class is an entity. This annotation is applied to the entity class. @javax.persistence.Table:Specifies the primary table for the annotated entity. Additional tables may be specified using SecondaryTable or Secon
walkingtechie.blogspot.com
-> 두 어노테이션의 'name' 어트리뷰트 지정에 따라 SQL 쿼리문에 차이를 보인다.
'Miscellaneous Dictionary' 카테고리의 다른 글
[SpringBoot] @SpringBootTest, @WebMvcTest, @AutoConfigureMockMvc (0) 2022.08.28 [Spring] ApplicationEventPublisher 관련 (0) 2022.08.28 Spring Data JDBC 에서 AggregateReference 클래스 사용 (0) 2022.08.24 Git 활용 중 무한 [dquote> ] 빠져나가기 (0) 2022.08.22 팝업(Pop up)과 모달(Modal) 차이 (0) 2022.08.22