Package org.fao.geonet.repository

Examples of org.fao.geonet.repository.HarvesterSettingRepository


    }

    private static void saveParentAndChildHarvesterSetting(ServiceContext context) {
        final String name = UUID.randomUUID().toString();

        final HarvesterSettingRepository settingRepository = context.getBean(HarvesterSettingRepository.class);
        settingRepository.save(new HarvesterSetting().setName(name).setValue("value"));

        final HarvesterSetting parent = settingRepository.findOneByPath(name);
        final HarvesterSetting child = new HarvesterSetting().setValue("childValue").setName("childName")
                .setParent(parent);

        settingRepository.save(child);
    }
View Full Code Here

TOP

Related Classes of org.fao.geonet.repository.HarvesterSettingRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.