mirror of https://github.com/Rekoe/rk_svnadmin
Merge branch 'master' of https://github.com/Rekoe/rk_svnadmin.git
commit
4f647554fa
|
@ -22,6 +22,9 @@ public class ProjectConfigService extends BaseService<ProjectConfig> {
|
||||||
|
|
||||||
public ProjectConfig get() {
|
public ProjectConfig get() {
|
||||||
ProjectConfig conf = dao().fetch(getEntityClass());
|
ProjectConfig conf = dao().fetch(getEntityClass());
|
||||||
|
if (conf == null) {
|
||||||
|
dao().insert(new ProjectConfig());
|
||||||
|
}
|
||||||
return conf;
|
return conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue