91929394959697
PropertiesFactoryBean factory = new PropertiesFactoryBean(); factory.setLocation(new ClassPathResource("META-INF/jpa-named-queries.properties")); factory.afterPropertiesSet(); return new PropertiesBasedNamedQueries(factory.getObject()); }