-/*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-package org.onap.ccsdk.apps.controllerblueprints;\r
-\r
-import org.springframework.boot.autoconfigure.domain.EntityScan;\r
-import org.springframework.context.annotation.Bean;\r
-import org.springframework.context.annotation.Configuration;\r
-import org.springframework.data.jpa.repository.config.EnableJpaAuditing;\r
-import org.springframework.data.jpa.repository.config.EnableJpaRepositories;\r
-import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;\r
-import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;\r
-import org.springframework.transaction.annotation.EnableTransactionManagement;\r
-\r
-import javax.sql.DataSource;\r
-\r
-/**\r
- * DatabaseConfig.java Purpose: Provide Configuration Generator DatabaseConfig Information\r
- *\r
- * @author Brinda Santh\r
- * @version 1.0\r
- */\r
-@Configuration\r
-@EntityScan("org.onap.ccsdk.apps.controllerblueprints.service.domain")\r
-@EnableTransactionManagement\r
-@EnableJpaRepositories("org.onap.ccsdk.apps.controllerblueprints.service.repository")\r
-@EnableJpaAuditing\r
-public class DatabaseConfig {\r
- /**\r
- * This is a entityManagerFactory method\r
- *\r
- * @param dataSource\r
- * @return LocalContainerEntityManagerFactoryBean\r
- */\r
-\r
- @Bean\r
- public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) {\r
- HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\r
- vendorAdapter.setGenerateDdl(true);\r
- vendorAdapter.setShowSql(false);\r
- LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();\r
- factory.setJpaVendorAdapter(vendorAdapter);\r
- factory.setPackagesToScan("org.onap.ccsdk.apps.controllerblueprints.service.domain");\r
- factory.setDataSource(dataSource);\r
- return factory;\r
- }\r
-\r
-}\r
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.cds.controllerblueprints;
+
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
+import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
+import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+import javax.sql.DataSource;
+
+/**
+ * DatabaseConfig.java Purpose: Provide Configuration Generator DatabaseConfig Information
+ *
+ * @author Brinda Santh
+ * @version 1.0
+ */
+@Configuration
+@EntityScan("org.onap.ccsdk.cds.controllerblueprints.service.domain")
+@EnableTransactionManagement
+@EnableJpaRepositories("org.onap.ccsdk.cds.controllerblueprints.service.repository")
+@EnableJpaAuditing
+public class DatabaseConfig {
+ /**
+ * This is a entityManagerFactory method
+ *
+ * @param dataSource
+ * @return LocalContainerEntityManagerFactoryBean
+ */
+
+ @Bean
+ public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) {
+ HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
+ vendorAdapter.setGenerateDdl(true);
+ vendorAdapter.setShowSql(false);
+ LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
+ factory.setJpaVendorAdapter(vendorAdapter);
+ factory.setPackagesToScan("org.onap.ccsdk.cds.controllerblueprints.service.domain");
+ factory.setDataSource(dataSource);
+ return factory;
+ }
+
+}