本人新手,刚接触hibernate.想请问下定义外键是否都用manyto等标签,而不是直接定义id
hibernate中没有外键引用这么一说,都是配置one-to-one、many-to-one、many-to-many等等映射关系。所以不用定义外键id。