You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/05/25 12:48:20 UTC
(causeway-app-petclinic) 05/24: references petowner module in the ApplicatoinModule
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 9d1d1a4726b45ab88887253a605a70c355834ba9
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Tue May 21 07:14:00 2024 +0100
references petowner module in the ApplicatoinModule
---
webapp/pom.xml | 5 +++++
.../main/java/domainapp/webapp/application/ApplicationModule.java | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/webapp/pom.xml b/webapp/pom.xml
index fba2c37..d23ff9f 100644
--- a/webapp/pom.xml
+++ b/webapp/pom.xml
@@ -84,6 +84,11 @@
<dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>simpleapp-jpa-module-petowner</artifactId>
+ </dependency>
+
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>simpleapp-jpa-module-simple</artifactId>
diff --git a/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java b/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
index 540c2e4..1df42f2 100644
--- a/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
+++ b/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
@@ -4,10 +4,14 @@ import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
+import domainapp.modules.petowner.PetOwnerModule;
import domainapp.modules.simple.SimpleModule;
@Configuration
-@Import(SimpleModule.class)
+@Import({
+ PetOwnerModule.class,
+ SimpleModule.class,
+})
@ComponentScan
public class ApplicationModule {