-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
Is there any support for Java 17? Attempting to fix vulnerabilities with Spring and it recommends using Spring 3.0.0 (which requires Java 17) but when creating session context, It's no longer able to Autowire EntityManagerFactory or allow the new jakarta.persistence.EntityManagerFactory to be passed into JPAODataSessionContextAccess sessionContext
@Bean
public JPAODataSessionContextAccess sessionContext(@Autowired EntityManagerFactory entityManagerFactory) {
logHandler.log(LogType.CONTEXT, "Attempting to create session context...");
JPAODataSessionContextAccess sessionContext = JPAODataServiceContext.with()
.setPUnit(properties.getPunit())
.setEntityManagerFactory(entityManagerFactory)
.setTypePackage(properties.getRootPackage())
.setRequestMappingPath(properties.getDbId())
.setEdmNameBuilder(new NameBuilderConfiguration(properties.getPunit()))
.build();
logHandler.log(LogType.CONTEXT, "Session context successfully created.");
return sessionContext;
}
Metadata
Metadata
Assignees
Labels
No labels