public Optional<String> hibernateFetchJoin(Class<?> clazz, String beanAlias){
String result = "";
- result += String.format(" LEFT JOIN FETCH %s.taxon taxon LEFT JOIN FETCH taxon.name LEFT JOIN FETCH taxon.sec", beanAlias);
+ result += String.format(" LEFT JOIN FETCH %s.taxon taxon LEFT JOIN FETCH taxon.name LEFT JOIN FETCH taxon.secSource ss LEFT JOIN FETCH ss.citation", beanAlias);
return Optional.of(result);
}
\r
private static final List<String> NODE_INIT_STRATEGY = Arrays.asList(new String[]{\r
"taxon.name.rank",\r
- "taxon.sec"\r
+ "taxon.secSource.citation"\r
});\r
\r
private ITaxonService taxonService;\r
"taxonNodes.classification",\r
"taxonNodes.parent",\r
"taxonNodes.taxon.name",\r
- "taxonNodes.taxon.sec",\r
+ "taxonNodes.taxon.secSource.citation",\r
"acceptedTaxon.taxonNodes.classification"\r
}));\r
\r
private static final List<String> NODE_INIT_STRATEGY = Arrays.asList(new String[]{
- "taxon.sec",
+ "taxon.secSource.citation",
"taxon.name"
});
"taxonNodes.parent",
"taxonNodes.statusNote.*",
"taxonNodes.taxon.name",
- "taxonNodes.taxon.sec",
+ "taxonNodes.taxon.secSource.citation",
"taxonNodes.source.citation.authorship",
"taxonNodes.source.citation.inReference.authorship",
"acceptedTaxon.taxonNodes.classification",
/** Hibernate taxon node initialisation strategy */
private static final List<String> TAXON_NODE_INIT_STRATEGY = Arrays.asList(new String[] {
- "taxon.sec",
+ "taxon.secSource.citation",
"taxon.name",
"classification",
"classification.source.citation.$",
"childNodes",
"childNodes.taxon",
"childNodes.taxon.name",
- "taxon.sec",
+ "taxon.secSource.citation",
"taxon.name.*"
});
"childNodes",
"childNodes.taxon",
"childNodes.taxon.name",
- "taxon.sec",
+ "taxon.secSource.citation",
"taxon.name.*"
});