JAVA-20163 Upgrade hibernate specific modules to JDK 11 (#13817)

* JAVA-20163 Migration hibernate-annotations

* JAVA-20163 Migrate hibernate-queries

* JAVA-20163 Migrating hibernate-mapping

* JAVA-20163 rename reserved keywords, update inheritance example

* JAVA-20163 Migrate hibernate-ogm module to the jdk 8 because hibernate-ogm doesn't support jakarta API

* JAVA-20163 Migrate hibernate-enterprise module

* JAVA-20163 Add update to HibernateExceptionUnitTest#whenQueryExecutedWithUnmappedEntity_thenMappingException

* JAVA-20163 Set explicit version for hibernate 6.1.7.Final in the hibernate-queries module

* JAVA-20163 Fix failed test with port that already exists (giving another port 8088)

* JAVA-20163 Fix other location after changing the port

* JAVA-20163 Remove duplicate Unit Test

---------

Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
This commit is contained in:
timis1
2023-05-12 16:36:06 +03:00
committed by GitHub
parent 000149dd33
commit e7d1d56c47
117 changed files with 816 additions and 787 deletions
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import com.baeldung.cloud.openfeign.customizederrorhandling.config.FeignConfig;
import com.baeldung.cloud.openfeign.defaulterrorhandling.model.Product;
@FeignClient(name = "product-client-2", url = "http://localhost:8081/product/", configuration = FeignConfig.class)
@FeignClient(name = "product-client-2", url = "http://localhost:8088/product/", configuration = FeignConfig.class)
public interface ProductClient {
@RequestMapping(value = "{id}", method = RequestMethod.GET)
@@ -31,8 +31,8 @@ public class ProductClientUnitTest {
@Before
public void startWireMockServer() {
wireMockServer = new WireMockServer(8081);
configureFor("localhost", 8081);
wireMockServer = new WireMockServer(8088);
configureFor("localhost", 8088);
wireMockServer.start();
}
@@ -46,8 +46,8 @@ public class ProductControllerUnitTest {
@Before
public void startWireMockServer() {
wireMockServer = new WireMockServer(8081);
configureFor("localhost", 8081);
wireMockServer = new WireMockServer(8088);
configureFor("localhost", 8088);
wireMockServer.start();
}