| Code: |
| public void addToConfigurations (org.lueo.cr.Configurations configurations) {
if (null == getConfigurations()) setConfigurations(new java.util.TreeSet<org.lueo.cr.Configurations>()); getConfigurations().add(configurations); } |
| Code: |
| Components comp = new Components();
comp.addToConfigurations(conf1); comp.addToConfigurations(conf2); |
| Code: |
| /**
* Set the value related to the column: Configurations * @param configurations the Configurations value */ public void setConfigurations (java.util.Set<org.lueo.cr.Configurations> configurations) { this.configurations = configurations; } |
| Code: |
| Components comp = new Components();
Set<Configurations> confs = new HashSet<Configurations>(); confs.add(conf1); confs.add(conf2); comp.setConfigurations(conf); |
| steve40 wrote: |
| you have to include a meta-tag in your mapping document, to give HS a hint what kind of implementing class to use. e.g.
<set name="accounts" inverse="true"> <key column="ID"/> <one-to-many class="Account"/> <meta attribute="implementation-class">java.util.HashSet</meta> </set> hth steve |