diff --git a/hyperjaxb/ejb/plugin/pom.xml b/hyperjaxb/ejb/plugin/pom.xml
index 81deb8dae..4425b0422 100644
--- a/hyperjaxb/ejb/plugin/pom.xml
+++ b/hyperjaxb/ejb/plugin/pom.xml
@@ -27,6 +27,14 @@
org.jvnet.jaxb
jaxb-plugins-tools
+
+ org.springframework
+ spring-context
+
+
+ org.springframework
+ spring-beans
+
org.jvnet.jaxb
hyperjaxb3-ejb-roundtrip
@@ -62,18 +70,10 @@
org.glassfish.jaxb
xsom
-
jakarta.persistence
jakarta.persistence-api
-
- org.springframework
- spring
-
install
diff --git a/jaxb-plugins-parent/jaxb-plugins-tools/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java b/hyperjaxb/ejb/plugin/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java
similarity index 99%
rename from jaxb-plugins-parent/jaxb-plugins-tools/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java
rename to hyperjaxb/ejb/plugin/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java
index 6f8fdd984..8c8ab9995 100644
--- a/jaxb-plugins-parent/jaxb-plugins-tools/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java
+++ b/hyperjaxb/ejb/plugin/src/main/java/org/jvnet/jaxb/plugin/spring/AbstractSpringConfigurablePlugin.java
@@ -1,5 +1,8 @@
package org.jvnet.jaxb.plugin.spring;
+import com.sun.tools.xjc.BadCommandLineException;
+import com.sun.tools.xjc.Options;
+import com.sun.tools.xjc.outline.Outline;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -8,10 +11,6 @@
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
-import com.sun.tools.xjc.BadCommandLineException;
-import com.sun.tools.xjc.Options;
-import com.sun.tools.xjc.outline.Outline;
-
public abstract class AbstractSpringConfigurablePlugin extends
AbstractParameterizablePlugin {
diff --git a/hyperjaxb/ejb/samples/customerservice-cxf/pom.xml b/hyperjaxb/ejb/samples/customerservice-cxf/pom.xml
index 49a427c12..b0d98aa51 100644
--- a/hyperjaxb/ejb/samples/customerservice-cxf/pom.xml
+++ b/hyperjaxb/ejb/samples/customerservice-cxf/pom.xml
@@ -16,12 +16,12 @@
org.springframework
spring-orm
- 3.0.1.RELEASE
+ 6.1.3
org.springframework
spring-web
- 3.0.1.RELEASE
+ 6.1.3
@@ -105,7 +105,7 @@
org.springframework
spring-test
- 3.0.1.RELEASE
+ 6.1.3
test
diff --git a/hyperjaxb/ejb/samples/customerservice-cxf/src/main/java/com/example/customerservice/service/CustomerServiceImpl.java b/hyperjaxb/ejb/samples/customerservice-cxf/src/main/java/com/example/customerservice/service/CustomerServiceImpl.java
index 3bcc42476..2e88ce2f9 100644
--- a/hyperjaxb/ejb/samples/customerservice-cxf/src/main/java/com/example/customerservice/service/CustomerServiceImpl.java
+++ b/hyperjaxb/ejb/samples/customerservice-cxf/src/main/java/com/example/customerservice/service/CustomerServiceImpl.java
@@ -1,6 +1,7 @@
package com.example.customerservice.service;
-import org.springframework.orm.jpa.support.JpaDaoSupport;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@@ -10,23 +11,24 @@
import com.example.customerservice.service.NoSuchCustomerException;
@Transactional
-public class CustomerServiceImpl extends JpaDaoSupport implements
- CustomerService {
+public class CustomerServiceImpl implements CustomerService {
+
+ @PersistenceContext
+ protected EntityManager theEntityManager;
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public void deleteCustomerById(final Integer customerId)
throws NoSuchCustomerException {
final Customer customer = getCustomerById(customerId);
- getJpaTemplate().remove(customer);
+ theEntityManager.remove(customer);
}
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Customer getCustomerById(final Integer customerId)
throws NoSuchCustomerException {
- final Customer customer = getJpaTemplate().find(Customer.class,
- customerId);
+ final Customer customer = theEntityManager.find(Customer.class, customerId);
if (customer == null) {
NoSuchCustomer noSuchCustomer = new NoSuchCustomer();
@@ -42,7 +44,7 @@ public Customer getCustomerById(final Integer customerId)
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public Integer updateCustomer(Customer customer) {
- final Customer mergedCustomer = getJpaTemplate().merge(customer);
+ final Customer mergedCustomer = theEntityManager.merge(customer);
return mergedCustomer.getCustomerId();
}
diff --git a/hyperjaxb/ejb/samples/pom.xml b/hyperjaxb/ejb/samples/pom.xml
index a362f98fd..eb9312e7a 100644
--- a/hyperjaxb/ejb/samples/pom.xml
+++ b/hyperjaxb/ejb/samples/pom.xml
@@ -18,9 +18,9 @@
- jdk-11+
+ jdk-17+
- [11,)
+ [17,)
customerservice-cxf
diff --git a/jaxb-plugins-parent/jaxb-plugins-tools/pom.xml b/jaxb-plugins-parent/jaxb-plugins-tools/pom.xml
index 4c2eaf525..e6f394377 100644
--- a/jaxb-plugins-parent/jaxb-plugins-tools/pom.xml
+++ b/jaxb-plugins-parent/jaxb-plugins-tools/pom.xml
@@ -44,10 +44,5 @@
angus-activation
provided
-
- org.springframework
- spring
- provided
-
diff --git a/pom.xml b/pom.xml
index e4890833e..ba7872265 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,7 @@
2.5
4.13.2
1.7.36
+ 5.3.31
1.8.3
1.2.0
3.5.1
@@ -376,13 +377,17 @@
${slf4j.version}
-
+
org.springframework
- spring
- 2.0.7
+ spring-context
+ ${spring.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring.version}
-
org.hibernate