the first "unresolved" problem in many-to-many:
the auto-created POJO:

  |     @ManyToMany(cascade={}, fetch=FetchType.LAZY, mappedBy="unresolved")
  | 
  |     public Set<InfondsFunds> getFunds() {
  |         return this.funds;
  |     }
  |     
  |     public void setFunds(Set<InfondsFunds> funds) {
  |         this.funds = funds;
  |     }
  | 
  |     @ManyToMany(cascade={}, fetch=FetchType.LAZY, mappedBy="unresolved")
  | 
  |     public Set<InfondsFunds> getFundsAbschluss() {
  |         return this.fundsAbschluss;
  |     }
  |     
  |     public void setFundsAbschluss(Set<InfondsFunds> fundsAbschluss) {
  |         this.fundsAbschluss = fundsAbschluss;
  |     }
  | 

the used .hbm.xml file:

  | ...
  | <set name="funds" table="infonds_vv_funds" inverse="true" lazy="true" 
cascade="none">
  | <meta attribute="field-description">
  | Die Funds für die diese VV gilt (sprich die von diesem VP vertriebenen 
Funds). Hier duerfen nur funds enthalten sein, die beim vom Mandanten 
vertrieben werden (infonds_mandant.infonds_mandant_funds).
  | </meta>
  | <key column="vv_id"/>
  | <many-to-many class="eu.cleversoft.infonds.ejb3.entities.InfondsFunds" 
column="funds_id"/>
  | </set>              
  | ...
  | ...
  | <set name="fundsAbschluss" table="infonds_vv_funds_abschluss" 
inverse="true" lazy="true" cascade="none">
  | <meta attribute="field-description">
  | Die Funds für die diese VV bzgl. Abschluss Provisionen gilt (sprich die von 
diesem VP vertriebenen Funds). Hier duerfen nur Funds enthalten sein, die beim 
vom Mandanten vertrieben werden (auch infonds_mandant.infonds_mandant_funds).
  | </meta>
  | <key column="vv_id"/>
  | <many-to-many class="eu.cleversoft.infonds.ejb3.entities.InfondsFunds" 
column="funds_id"/>
  | </set>
  | ...
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922430#3922430

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922430


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to