-1
난 세 DB 테이블데이터가 다 대다 매핑에 삽입되지 않습니까?
- 경로 (route_id)
- 정지 (stop_id)
- route_stop (route_id, stop_id) --- 매핑 테이블
Route.hbm.xml
이<set name="stops" table="route_stop" cascade="all"><key column="route_id" /><many-to-many column="stop_id" class="com.trackingsystem.model.Stop" /></set>
Stop.hbm.xml
<set name="routes" table="route_stop" cascade="all"><key column="stop_id" /><many-to-many column="route_id" class="com.trackingsystem.model.Route" />
하지만 데이터가 DB에 삽입되지 않으며,
는 이러한 선택 쿼리
Hibernate: /* get current state com.trackingsystem.model.Stop */ select stop_.stop_id, stop_.stop_name as stop2_106_, stop_.lattitude as lattitude106_, stop_.langitude as langitude106_ from trackingsystem.stop stop_ where stop_.stop_id=? Hibernate: /* get current state com.trackingsystem.model.Stop */ select stop_.stop_id, stop_.stop_name as stop2_106_, stop_.lattitude as lattitude106_, stop_.langitude as langitude106_ from trackingsystem.stop stop_ where stop_.stop_id=?
문제가
을 보여주고있다?