Is there a way to create JPA objects with IntelliJ without the persistence.xml file? Or, basically, does IntelliJ recognize a persistance device from Java Config? I have an existing (deprecated) schema and the project is being overwritten, now using Java Config in Spring Boot. In the Spring Boot documents, the save block will be created by code:
@Bean public LocalContainerEntityManagerFactoryBean customerEntityManagerFactory( EntityManagerFactoryBuilder builder) { return builder .dataSource(dataSource()) .packages(com.abc.DomainThing.class) .persistenceUnit("abc") .build(); }
Randy source share