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>
@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();