diff options
author | 2019-12-04 15:49:03 +0100 | |
---|---|---|
committer | 2019-12-04 15:49:43 +0100 | |
commit | ffd9af970318c1f5a0bad46d7aad5d4611414aae (patch) | |
tree | 935f5e0a13a21df52ca1d796ac3b684910d4ba4c /portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java | |
parent | 39fb119cdaea6bd8d801b22d195db39f6d8faaca (diff) |
Domain model change
ORM inheritance implementation in all classes that extend from DomainVo
class.
This patch also change data source from data.sql to DBInitializingBean that
pushing data by hibernate to database.
Issue-ID: PORTAL-710
Change-Id: I0f95f7a50facae9f3004ff9f16cdee4e76a39e35
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Diffstat (limited to 'portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java')
-rw-r--r-- | portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java b/portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java index 90b02563..f3b38187 100644 --- a/portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java +++ b/portal-BE/src/main/java/org/onap/portal/configuration/WebMvcConfiguration.java @@ -40,6 +40,8 @@ package org.onap.portal.configuration; +import org.onap.portal.dao.fn.FnFunctionDao; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.ComponentScan; import org.springframework.core.Ordered; import org.springframework.web.servlet.config.annotation.EnableWebMvc; @@ -50,9 +52,17 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @ComponentScan("org.springframework.security.samples.mvc") public class WebMvcConfiguration implements WebMvcConfigurer { + private final FnFunctionDao fnFunctionDao; + + @Autowired + public WebMvcConfiguration(FnFunctionDao fnFunctionDao) { + this.fnFunctionDao = fnFunctionDao; + } + @Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("login.html").setViewName("login.html"); registry.setOrder(Ordered.HIGHEST_PRECEDENCE); } + } |