-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86dcbfb
commit a781d07
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...sample/jpapersistence/infrastructure/primary/SampleJpaPersistenceModuleConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package tech.jhipster.lite.generator.server.springboot.mvc.sample.jpapersistence.infrastructure.primary; | ||
|
||
import static tech.jhipster.lite.shared.slug.domain.JHLiteFeatureSlug.SAMPLE_PERSISTENCE; | ||
import static tech.jhipster.lite.shared.slug.domain.JHLiteFeatureSlug.SAMPLE_SCHEMA; | ||
import static tech.jhipster.lite.shared.slug.domain.JHLiteModuleSlug.SAMPLE_JPA_PERSISTENCE; | ||
import static tech.jhipster.lite.shared.slug.domain.JHLiteModuleSlug.SPRING_BOOT_CUCUMBER_JPA_RESET; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import tech.jhipster.lite.generator.server.springboot.mvc.sample.jpapersistence.application.SampleJpaPersistenceApplicationService; | ||
import tech.jhipster.lite.module.domain.resource.JHipsterModuleOrganization; | ||
import tech.jhipster.lite.module.domain.resource.JHipsterModulePropertiesDefinition; | ||
import tech.jhipster.lite.module.domain.resource.JHipsterModuleResource; | ||
|
||
@Configuration | ||
class SampleJpaPersistenceModuleConfiguration { | ||
|
||
@Bean | ||
JHipsterModuleResource sampleJpaPersistenceModule(SampleJpaPersistenceApplicationService sampleJpaPersistence) { | ||
return JHipsterModuleResource.builder() | ||
.slug(SAMPLE_JPA_PERSISTENCE) | ||
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().build()) | ||
.apiDoc("Sample Feature", "Add JPA persistence for sample feature") | ||
.organization( | ||
JHipsterModuleOrganization.builder() | ||
.feature(SAMPLE_PERSISTENCE) | ||
.addDependency(SAMPLE_SCHEMA) | ||
.addDependency(SPRING_BOOT_CUCUMBER_JPA_RESET) | ||
.build() | ||
) | ||
.tags("server") | ||
.factory(sampleJpaPersistence::buildModule); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters