hibernate之多表聯繫

多表聯繫 一對多: 一關聯多的一方 bean類中 多的一方爲集合 private Set<LinkMan> linkMens = new HashSet<LinkMan>(); <!-- 集合,一對多關係,在配置文件中配置 --> <!-- name屬性:集合屬性名 column屬性: 外鍵列名 class屬性: 與我關聯的對象完整類名 --> <!--
相關文章
相關標籤/搜索