|
static void | migrate (Document document, String name) |
|
◆ migrate()
static void org.turro.jpa.config.JpaConfigMigrate.migrate |
( |
Document |
document, |
|
|
String |
name |
|
) |
| |
|
static |
Definition at line 34 of file JpaConfigMigrate.java.
35 Properties properties =
new Properties();
36 HibernateConfig hc = (HibernateConfig) HeadlessApplication.getInstance()
37 .getImplementation(
"IHibernateConfig_" + name);
39 hc.updateProperties(properties);
41 JpaConfig config =
new JpaConfig();
42 config.setUrl(properties.getProperty(
"hibernate.connection.url"));
43 config.setUsername(properties.getProperty(
"hibernate.connection.username"));
44 config.setPassword(properties.getProperty(
"hibernate.connection.password"));
45 document.content(config.toJson());
46 }
catch (IOException ex) {
47 WebLoggers.severe(JpaConfigMigrate.class).exception(ex).log();
The documentation for this class was generated from the following file: