Skip to content

Commit

Permalink
Cosmetic improvements (#12)
Browse files Browse the repository at this point in the history
* Cosmetic improvements

* Documentation fixes and Increment version of Junit, Mockito and overall library

* Documentation fixes and Increment version of Junit, Mockito and overall library
  • Loading branch information
Dhi13man committed Sep 25, 2023
1 parent bfa6af9 commit c080f85
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public class MultiDataSourceConfigGenerator {

private static final String DATA_SOURCE_ENTITY_PACKAGES_CONSTANT_NAME = "DATA_SOURCE_ENTITY_PACKAGES";

private static final String ADD_THE_SPRING_BEAN_CONTAINER_TO_THE_HIBERNATE_PROPERTIES = "Add the SpringBeanContainer to the hibernate properties to allow the use of Spring beans in JPQL queries";

private final Messager messager;

public MultiDataSourceConfigGenerator(Messager messager) {
Expand Down Expand Up @@ -350,10 +352,7 @@ private MethodSpec.Builder createEntityManagerFactoryBeanMethod(
dataSourceEntityPackagesFieldSpec,
dataSourceBeanNameFieldSpec
)
.addComment(
"Add the SpringBeanContainer to the hibernate properties to allow the use of Spring"
+ " beans in JPQL queries"
)
.addComment(ADD_THE_SPRING_BEAN_CONTAINER_TO_THE_HIBERNATE_PROPERTIES)
.addStatement(
"emfb.getJpaPropertyMap().put($S, new $T($N))",
hibernateBeanContainerPropertyPath,
Expand Down

0 comments on commit c080f85

Please sign in to comment.