Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
anunnakian committed Nov 10, 2024
1 parent 86dcbfb commit a781d07
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;

@UnitTest
class SampleLangChain4jModuleFactoryTest {
class SampleJpaPersistenceModuleFactoryTest {

private static final SampleJpaPersistenceModuleFactory factory = new SampleJpaPersistenceModuleFactory();

Expand Down

0 comments on commit a781d07

Please sign in to comment.