0
매핑 파일에서 foreign key
을 어떻게 지정할 수 있습니까? 다음 매핑 파일에서 id
은 외래 키입니다. 어떻게 지정할 수 있습니까?매핑 파일에서 외래 키 지정
<hibernate-mapping>
<class name="org.suhail.pojo.Scheduled" table="scheduled">
<id name="sid" column="sid" type="integer">
<generator class="increment" />
</id>
<property name="id" column="id" type="integer" />
<property name="sdate" column="sdate" type="date"/>
<property name="stime" column="stime" type="time" />
<property name="tweet" column="tweet" type="string" />
</class>
</hibernate-mapping>