Skip to content

Commit

Permalink
Add info about setting the basePackages configuration when using th…
Browse files Browse the repository at this point in the history
…e HibernateRepository
  • Loading branch information
vladmihalcea committed Jul 25, 2022
1 parent 4a5753d commit abcfc8f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ For more details, check out [this article](https://vladmihalcea.com/how-to-map-j

* [`HibernateRepository` - The best Spring Data JpaRepository](https://vladmihalcea.com/best-spring-data-jparepository/)

When using the `HibernateRepository`, make sure that you include the `com.vladmihalcea.spring.repository` package
in your `@EnableJpaRepositories` configuration:

````java
@Configuration
@EnableJpaRepositories(
basePackages = {
"com.vladmihalcea.spring.repository",
...
}
)
public class JpaConfiguration {
...
}
````

##### Identifier Generators

* [`BatchSequenceGenerator` - Hibernate Batch Sequence Generator](https://vladmihalcea.com/hibernate-batch-sequence-generator/)
Expand Down

0 comments on commit abcfc8f

Please sign in to comment.