posts - 431,  comments - 344,  trackbacks - 0
          Payment.java

          private Set<Subscription> subscriptions = new HashSet<Subscription>(0);

          Subscription.java

           private Set<Payment> payments = new HashSet<Payment>(0);

          Payment.hbm.xml

          <set name="subscriptions" table="subscriptionpayment" inverse="false"
             cascade="none">
             <key>
              <column name="PaymentID" />
             </key>
             <many-to-many class="com.test.eric.model.Subscription">
              <column name="SubscriptionID" />
             </many-to-many>
           </set>


          Subscription.hbm.xml

          <set name="payments" table="subscriptionpayment" inverse="false"
             cascade="none">
             <key>
              <column name="SubscriptionID" />
             </key>
             <many-to-many class="com.test.eric.model.Payment">
              <column name="PaymentID" />
             </many-to-many>
           </set>
          posted on 2007-04-10 14:31 周銳 閱讀(415) 評論(1)  編輯  收藏 所屬分類: Hibernate
          主站蜘蛛池模板: 兴隆县| 吉首市| 普陀区| 同德县| 大关县| 公主岭市| 安岳县| 井研县| 云林县| 花垣县| 博白县| 昌都县| 萨嘎县| 屏山县| 河池市| 宜春市| 邢台县| 广河县| 新丰县| 广平县| 砚山县| 尚志市| 冀州市| 剑川县| 文水县| 旬邑县| 和林格尔县| 巴林左旗| 资中县| 香港| 兖州市| 夏河县| 和林格尔县| 谢通门县| 华阴市| 阳原县| 平乡县| 古浪县| 长岭县| 嘉荫县| 宁海县|