/** * create a factory from a canonical version * @deprecated */ // This is used directly by JBoss so don't remove until further notice. bill@jboss.org public EntityManagerFactory createEntityManagerFactory(Map properties) { Ejb3Configuration cfg = new Ejb3Configuration(); return cfg.createEntityManagerFactory( properties ); }
/** * create a factory from a canonical version * @deprecated */ @Deprecated public EntityManagerFactory createEntityManagerFactory(Map properties) { // This is used directly by JBoss so don't remove until further notice. bill@jboss.org Ejb3Configuration cfg = new Ejb3Configuration(); return cfg.createEntityManagerFactory( properties ); }
protected EntityManagerFactory createEntityManagerFactory(final Map<String, String> properties) { Transaction tx = TransactionHelper.suspendTransaction(); try { return cfg.createEntityManagerFactory(properties); } finally { TransactionHelper.resumeTransaction(tx);; } }
/** * create a factory from a canonical version * * @deprecated */ // This is used directly by JBoss so don't remove until further notice. bill@jboss.org public EntityManagerFactory createEntityManagerFactory(Map properties) { Ejb3Configuration cfg = new Ejb3Configuration(); configure(cfg); return cfg.createEntityManagerFactory(properties); }
/** * create a factory from a canonical version * * @deprecated */ // This is used directly by JBoss so don't remove until further notice. bill@jboss.org public EntityManagerFactory createEntityManagerFactory(Map properties) { Ejb3Configuration cfg = new Ejb3Configuration(); configure(cfg); return cfg.createEntityManagerFactory(properties); }