From 349b4ae7179173f9261d9a432094cb55dc433820 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Fri, 21 Jul 2023 09:41:01 +0100 Subject: Java 17 Upgrade Issue-ID: POLICY-4668 Change-Id: If4e79224de61d66d7514f3abbd7b8bee1c3d5681 Signed-off-by: adheli.tavares --- spring-utils/pom.xml | 10 +++------- .../common/spring/utils/CustomImplicitNamingStrategy.java | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'spring-utils') diff --git a/spring-utils/pom.xml b/spring-utils/pom.xml index 37b73e19..f162629f 100644 --- a/spring-utils/pom.xml +++ b/spring-utils/pom.xml @@ -3,6 +3,7 @@ ONAP policy ================================================================================ Copyright (C) 2022 Bell Canada. All rights reserved. + Modifications Copyright (C) 2023 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,12 +27,12 @@ org.onap.policy.common common-modules - 2.0.0-SNAPSHOT + 2.0.1-SNAPSHOT spring-utils spring-utils - This artifact contains the common spring related utilitiy classes to be used by multiple policy framework components. + This artifact contains the common spring related utility classes to be used by multiple policy framework components. @@ -44,11 +45,6 @@ org.springframework spring-web - - - org.hibernate - hibernate-core - \ No newline at end of file diff --git a/spring-utils/src/main/java/org/onap/policy/common/spring/utils/CustomImplicitNamingStrategy.java b/spring-utils/src/main/java/org/onap/policy/common/spring/utils/CustomImplicitNamingStrategy.java index 1a747a3c..d9a7e97c 100644 --- a/spring-utils/src/main/java/org/onap/policy/common/spring/utils/CustomImplicitNamingStrategy.java +++ b/spring-utils/src/main/java/org/onap/policy/common/spring/utils/CustomImplicitNamingStrategy.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2022 Bell Canada. All rights reserved. + * Copyright (C) 2022 Bell Canada. All rights reserved. + * Modifications Copyright (C) 2023 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,12 +21,14 @@ package org.onap.policy.common.spring.utils; +import java.io.Serial; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.model.naming.ImplicitJoinColumnNameSource; import org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl; public class CustomImplicitNamingStrategy extends ImplicitNamingStrategyJpaCompliantImpl { + @Serial private static final long serialVersionUID = 8666774028328486896L; @Override -- cgit 1.2.3-korg