我有两张桌子
Reservation
和Driver
Reservation
表的表定义是
Reservation(table)
ReservationId (primary key)
DriverId (foreign key from table Driver)
Boarding Point
Dropping Point
Driver
表的表定义是
Driver(table)
DriverId (primary key)
DriverName
我想在hibernate中找到它所属的映射。
如何使用hibernate注释实现上述场景。