Added one continent to WaterbodyOrCountry.csv. Cleaned up CdmExporter refactoring.
import java.util.UUID;
import javax.persistence.Entity;
+import javax.persistence.JoinTable;
+import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
+import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
import eu.etaxonomy.cdm.model.common.ILoadableTerm;
* Returns the set of {@link StatisticalMeasure statistical measures} recommended to be used
* in case of {@link QuantitativeData quantitative data} with <i>this</i> feature.
*/
- @OneToMany
+ @ManyToMany
+ @JoinTable(
+ name="DefinedTermBase_StatisticalMeasure"
+ )
+ @Cascade({CascadeType.SAVE_UPDATE})
public Set<StatisticalMeasure> getRecommendedStatisticalMeasures() {
return recommendedStatisticalMeasures;
}
*/
@Entity
public class StatisticalMeasure extends DefinedTermBase {
- static Logger logger = Logger.getLogger(StatisticalMeasure.class);
+ private static final Logger logger = Logger.getLogger(StatisticalMeasure.class);
// ************* CONSTRUCTORS *************/
/**
this.shape = shape;
}
-
- @ManyToMany
+ @ManyToMany
+ @JoinTable(
+ name="DefinedTermBase_WaterbodyOrCountry"
+ )
@Cascade({CascadeType.SAVE_UPDATE})
public Set<WaterbodyOrCountry> getWaterbodiesOrCountries() {
return waterbodiesOrCountries;
super(term, label, labelAbbrev);
}
-
- @OneToMany
+ @ManyToMany
+ @JoinTable(
+ name="DefinedTermBase_Continent"
+ )
@Cascade({CascadeType.SAVE_UPDATE})
public Set<Continent> getContinents() {
return continents;
"006b1870-7347-4624-990f-e5ed78484a1a",,"WaterbodyOrCountry","WaterbodyOrCountry",\r
"974ce01a-5bce-4be8-b728-a46869354960",,"AFG","Afghanistan","AF","[]",\r
-"238a6a93-8857-4fd6-af9e-6437c90817ac",,"ALB","Albania, People's Socialist Republic of","AL","[]",\r
+"238a6a93-8857-4fd6-af9e-6437c90817ac",,"ALB","Albania, People's Socialist Republic of","AL",[3b69f979-408c-4080-b573-0ad78a315610],\r
"a14b38ac-e963-4c1a-85c2-de1f17f8c72a",,"DZA","Algeria, People's Democratic Republic of","DZ","[]",\r
"4a071803-88aa-4367-9707-bb1f24ad4386",,"ASM","American Samoa","AS","[]",\r
"7efd738f-33a1-4969-9d49-552571ffe935",,"AND","Andorra, Principality of","AD","[]",\r