사용자 도구

사이트 도구


java:hibernate:annotations

문서의 이전 판입니다!


Hibernate Annotations

하이버네이트 전용 어노테이션들

@org.hibernate.annotations.ForeignKey

  • @org.hibernate.annotations.ForeignKey(name=“fk_parent_id_child”) : 객체간의 연과을 맺을 때 FK 인덱스의 이름을 명시해준다.
  • 이를 명시하지 않으면 FK숫자여러개지정으로 된다.
  • @org.hibernate.annotations.ForeignKey(name=“none”) : name=“none”은 FK를 강제로 못 맺게 한다. Forcing hbm2ddl to not generate an FK
java/hibernate/annotations.1398739930.txt.gz · 마지막으로 수정됨: 2014/04/29 11:52 저자 kwon37xi