Project

General

Profile

Revision 0ff88328

ID0ff88328598e579703420b77a4d18435ae086348
Parent d1bd1389
Child 61311054

Added by Andreas Kohlbecker about 2 months ago

fix #9210 adding indexed format specifiers and fixing hql issues

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/initializer/AdvancedBeanInitializer.java
603 603
                } catch (Exception e) {
604 604
                    // should not happen, but just in case we fall back to explicit initialization
605 605
                    // and log the error
606
                    logger.error(e);
606
                    logger.error("error in fetch join processing, falling back to explicit initialization", e);
607 607
                    autoInit.initlializers.add(init);
608 608
                }
609 609

  
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/initializer/MediaAutoInitializer.java
33 33

  
34 34
    @Override
35 35
    public Optional<String> hibernateFetchJoin(Class<?> clazz, String beanAlias){
36
    	return Optional.of(String.format(" LEFT JOIN FETCH %s.representations LEFT JOIN FETCH %s.titles r LEFT JOIN FETCH r.mediaRepresentationParts ", beanAlias));
36
    	return Optional.of(String.format(" LEFT JOIN FETCH %1$s.representations r LEFT JOIN FETCH %1$s.title LEFT JOIN FETCH r.mediaRepresentationParts ", beanAlias));
37 37
    }
38 38
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)