diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-07-21 09:41:01 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-09-21 14:29:31 +0100 |
commit | 349b4ae7179173f9261d9a432094cb55dc433820 (patch) | |
tree | 4c13de684e11e7945ae52e178fd7d685601fff01 /spring-utils | |
parent | b902de16baecd36652db1208093030cedde813bb (diff) |
Java 17 Upgrade
Issue-ID: POLICY-4668
Change-Id: If4e79224de61d66d7514f3abbd7b8bee1c3d5681
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'spring-utils')
-rw-r--r-- | spring-utils/pom.xml | 10 | ||||
-rw-r--r-- | spring-utils/src/main/java/org/onap/policy/common/spring/utils/CustomImplicitNamingStrategy.java | 5 |
2 files changed, 7 insertions, 8 deletions
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 @@ <parent> <groupId>org.onap.policy.common</groupId> <artifactId>common-modules</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.1-SNAPSHOT</version> </parent> <artifactId>spring-utils</artifactId> <name>spring-utils</name> - <description>This artifact contains the common spring related utilitiy classes to be used by multiple policy framework components.</description> + <description>This artifact contains the common spring related utility classes to be used by multiple policy framework components.</description> <dependencies> <dependency> @@ -44,11 +45,6 @@ <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </dependency> - - <dependency> - <groupId>org.hibernate</groupId> - <artifactId>hibernate-core</artifactId> - </dependency> </dependencies> </project>
\ 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 |