Package service.advanced

Examples of service.advanced.PersonInfoStorage


    @Override
    public Set<Object> getSingletons() {
        Set<Object> classes = new HashSet<Object>();

        PersonInfoStorage storage = new PersonInfoStorage();
        try {
          Class.forName("org.hsqldb.jdbcDriver");
          EntityManagerFactory emFactory = Persistence.createEntityManagerFactory("persistenceUnitOpenJPA");
            storage.setEntityManager(emFactory.createEntityManager());
        
            Map<String, String> beanPropertiesMap = new HashMap<String, String>();
            beanPropertiesMap.put("fatherName", "father.name");
            beanPropertiesMap.put("father", "father.name");
          beanPropertiesMap.put("childName", "children.name");
            storage.setBeanProperties(beanPropertiesMap);
         
            storage.init();
        } catch (Throwable ex) {
          throw new RuntimeException(ex);
        }
       
       
View Full Code Here

TOP

Related Classes of service.advanced.PersonInfoStorage

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.