private void initializeKunderaParams ( PropertyReader reader ) { Map < String , String > props = KunderaPropertyBuilder . populatePersistenceUnitProperties ( reader ) ; try { emf = Persistence . createEntityManagerFactory ( EthConstants . PU , props ) ; } catch ( ClientResolverException ex ) { LOGGER . error ( "Not able to find dependency for Kundera " + props . get ( EthConstants . KUNDERA_DIALECT ) + " client." , ex ) ; throw new KunderaException ( "Not able to find dependency for Kundera " + props . get ( EthConstants . KUNDERA_DIALECT ) + " client." , ex ) ; } LOGGER . info ( "Kundera EMF created..." ) ; em = emf . createEntityManager ( ) ; LOGGER . info ( "Kundera EM created..." ) ; }
Initialize kundera params .