Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe
Tagged

Unique 설정

A collection of 1 post

하이버네이트

Table 애노테이션

패키지: javax.persistence 라이브러리: persistence-api-1.0.jar 속성: – catalog: 테이블의 카탈로그– name: 테이블 이름. 기본값은 entity 이름– schema: 테이블의 스키마– uniqueConstraints: Unique 제약을 걸 컬럼 설정. 예제 @Table(uniqueConstraints = @UniqueConstraint(columnNames = { “date”, “item_id”, “bay_id” }))pubic class Inv { …

  • 백기선
백기선 Jun 19, 2008 • 1 min read
Whiteship © 2022
Powered by Ghost