diff options
author | Pooja03 <PM00501616@techmahindra.com> | 2018-01-31 11:16:33 +0530 |
---|---|---|
committer | Pooja03 <PM00501616@techmahindra.com> | 2018-01-31 11:25:48 +0530 |
commit | 3a2703f01b5e0431ce390cd5e21f4b19d39fdded (patch) | |
tree | 433db8434ed3df23a080db4c72b646c7f2d38397 | |
parent | ab7eaadac99e9e55daccb39b9f27a9cc69760b96 (diff) |
Sonar Major fix
Adding the @Override annotation above the createTable method signature in DCAEServiceComponentsDAO.java
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR|rules=squid%3AS1161
Location:DCAEServiceComponentsDAO.java:L43
Change-Id: Ieca7421d424827f82dd662f8d5a097d8198a2dbe
Issue-ID: DCAEGEN2-289
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java b/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java index a2d70d0..1085ac4 100644 --- a/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java +++ b/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceComponentsDAO.java @@ -38,6 +38,7 @@ public interface DCAEServiceComponentsDAO extends InventoryDAO { @SqlQuery("select exists (select * from information_schema.tables where table_name = \'dcae_service_components\')") Boolean checkIfTableExists(); + @Override @SqlUpdate("create table dcae_service_components (component_id varchar not null primary key, component_type varchar not null, " + "component_source varchar not null, shareable integer default 0, created timestamp not null, modified timestamp not null)") void createTable(); |