|
static List< Document > | daos () |
|
static Properties | from (String pu, String name) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file JpaConfig.java.
◆ daos()
static List<Document> org.turro.jpa.config.JpaConfig.daos |
( |
| ) |
|
|
static |
Definition at line 80 of file JpaConfig.java.
82 Folder daoFolder = Folder.from(Path.of(ElephantContext.getRealPath(DAO_FOLDER)));
83 return daoFolder.documents(
"*.json");
84 }
catch (IOException ex) {
85 WebLoggers.severe(JpaConfig.class).exception(ex).log();
◆ from()
static Properties org.turro.jpa.config.JpaConfig.from |
( |
String |
pu, |
|
|
String |
name |
|
) |
| |
|
static |
Definition at line 106 of file JpaConfig.java.
108 Document configFile = Document.from(Path.of(ElephantContext.getRealPath(DAO_FOLDER))
109 .resolve(pu +
".json"));
110 if(!configFile.exists()) {
111 JpaConfigMigrate.migrate(configFile, name);
113 return IJSONizable.fromJson(configFile.content(), JpaConfig.class).properties();
114 }
catch (IOException ex) {
115 WebLoggers.severe(JpaConfig.class).exception(ex).log();
◆ setPassword()
void org.turro.jpa.config.JpaConfig.setPassword |
( |
String |
password | ) |
|
◆ setUrl()
void org.turro.jpa.config.JpaConfig.setUrl |
( |
String |
url | ) |
|
◆ setUsername()
void org.turro.jpa.config.JpaConfig.setUsername |
( |
String |
username | ) |
|
◆ toJson() [1/2]
String org.turro.jpa.config.JpaConfig.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.jpa.config.JpaConfig.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: