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/26 16:19:21 UTC
(causeway-app-petclinic) branch v2 updated (578a1c7 -> cc1e5cd)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a change to branch v2
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
from 578a1c7 adds Pet-xxx.png for each species
new 359bf5c adds iconname to Pet
new 451f69a defines module-visit as module in top level pom.xml
new d6a18f9 adds pom.xml for visit module itself
new f10d0a4 updates top-level pom.xml to include new visit module as child module
new 8b1cbf6 adds VisitModule (spring configuration) defining the visit module
new 71dc984 updates application.properties to set up 'visit' DB schema
new 588bb1d adds maven dependency from visit module to petowner module
new 23b809f adds Spring import from visit module to petowner module
new bb28887 adds maven dependency from application module to visit module
new cc1e5cd adds spring import from application module to visit module
The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/domainapp/modules/petowner/dom/pet/Pet.java | 5 +++++
{module-petowner => module-visit}/pom.xml | 9 +++++++--
.../main/java/domainapp/modules/visit/VisitModule.java | 17 +++++++++--------
pom.xml | 6 ++++++
webapp/pom.xml | 2 +-
.../domainapp/webapp/application/ApplicationModule.java | 3 ++-
webapp/src/main/resources/config/application.properties | 2 +-
7 files changed, 31 insertions(+), 13 deletions(-)
copy {module-petowner => module-visit}/pom.xml (89%)
copy module-simple/src/main/java/domainapp/modules/simple/SimpleModule.java => module-visit/src/main/java/domainapp/modules/visit/VisitModule.java (80%)
(causeway-app-petclinic) 02/10: defines module-visit as module in top level pom.xml
Posted by da...@apache.org.
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 451f69a5421280baa3ca4ea9d2e5c4a8029b43f7
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 16:33:39 2024 +0100
defines module-visit as module in top level pom.xml
---
pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pom.xml b/pom.xml
index fccb4e1..87808c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,6 +45,11 @@
<artifactId>simpleapp-jpa-module-petowner</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>simpleapp-jpa-module-visit</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>simpleapp-jpa-module-simple</artifactId>
(causeway-app-petclinic) 07/10: adds maven dependency from visit module to petowner module
Posted by da...@apache.org.
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 588bb1d1af7b43779df6a15640f9969f197bec8b
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 17:16:55 2024 +0100
adds maven dependency from visit module to petowner module
---
module-visit/pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/module-visit/pom.xml b/module-visit/pom.xml
index d1a6af3..59036be 100644
--- a/module-visit/pom.xml
+++ b/module-visit/pom.xml
@@ -35,6 +35,11 @@
<!-- CAUSEWAY API -->
+ <dependency>
+ <groupId>org.apache.causeway.starters</groupId>
+ <artifactId>simpleapp-jpa-module-petowner</artifactId>
+ </dependency>
+
<dependency>
<groupId>org.apache.causeway.core</groupId>
<artifactId>causeway-applib</artifactId>
(causeway-app-petclinic) 05/10: adds VisitModule (spring configuration) defining the visit module
Posted by da...@apache.org.
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 8b1cbf661d431b3ab465840bdd58668c85b1bd58
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 16:34:34 2024 +0100
adds VisitModule (spring configuration) defining the visit module
---
.../java/domainapp/modules/visit/VisitModule.java | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java b/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java
new file mode 100644
index 0000000..d1b8f87
--- /dev/null
+++ b/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java
@@ -0,0 +1,40 @@
+package domainapp.modules.visit;
+
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
+
+import org.apache.causeway.extensions.fullcalendar.applib.CausewayModuleExtFullCalendarApplib;
+import org.apache.causeway.extensions.pdfjs.applib.CausewayModuleExtPdfjsApplib;
+import org.apache.causeway.persistence.jpa.applib.CausewayModulePersistenceJpaApplib;
+import org.apache.causeway.testing.fakedata.applib.CausewayModuleTestingFakeDataApplib;
+import org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript;
+import org.apache.causeway.testing.fixtures.applib.modules.ModuleWithFixtures;
+import org.apache.causeway.testing.fixtures.applib.teardown.jpa.TeardownFixtureJpaAbstract;
+
+@Configuration
+@Import({
+ CausewayModuleExtPdfjsApplib.class,
+ CausewayModuleExtFullCalendarApplib.class,
+ CausewayModuleTestingFakeDataApplib.class,
+ CausewayModulePersistenceJpaApplib.class,
+})
+@ComponentScan
+@EnableJpaRepositories
+@EntityScan(basePackageClasses = {VisitModule.class})
+public class VisitModule implements ModuleWithFixtures {
+
+ public static final String NAMESPACE = "visit";
+ public static final String SCHEMA = "visit";
+
+ @Override
+ public FixtureScript getTeardownFixture() {
+ return new TeardownFixtureJpaAbstract() {
+ @Override
+ protected void execute(ExecutionContext executionContext) {
+ }
+ };
+ }
+}
(causeway-app-petclinic) 06/10: updates application.properties to set up 'visit' DB schema
Posted by da...@apache.org.
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 71dc9847539a3c6a68427bbe685ccd66aa847864
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 16:35:37 2024 +0100
updates application.properties to set up 'visit' DB schema
---
webapp/src/main/resources/config/application.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webapp/src/main/resources/config/application.properties b/webapp/src/main/resources/config/application.properties
index 4b49899..d921535 100644
--- a/webapp/src/main/resources/config/application.properties
+++ b/webapp/src/main/resources/config/application.properties
@@ -15,7 +15,7 @@ spring.datasource.url=jdbc:h2:mem:simple;DATABASE_TO_UPPER=false;IGNORECASE=TRUE
spring.datasource.driver-class-name=org.h2.Driver
causeway.persistence.schema.create-schema-sql-template=CREATE SCHEMA IF NOT EXISTS %s
-causeway.persistence.schema.auto-create-schemas=petowner,simple,causewayExtSecman,causewayExtAuditTrail,causewayExtCommandLog,causewayExtExecutionLog,causewayExtExecutionOutbox,causewayExtSessionLog
+causeway.persistence.schema.auto-create-schemas=petowner,visit,simple,causewayExtSecman,causewayExtAuditTrail,causewayExtCommandLog,causewayExtExecutionLog,causewayExtExecutionOutbox,causewayExtSessionLog
causeway.core.meta-model.introspector.policy=encapsulation_enabled
(causeway-app-petclinic) 10/10: adds spring import from application module to visit module
Posted by da...@apache.org.
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 cc1e5cdae90c997ac6f587818dbb3d48a45c1583
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 17:17:38 2024 +0100
adds spring import from application module to visit module
---
.../src/main/java/domainapp/webapp/application/ApplicationModule.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java b/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
index 1df42f2..43181cc 100644
--- a/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
+++ b/webapp/src/main/java/domainapp/webapp/application/ApplicationModule.java
@@ -6,10 +6,11 @@ import org.springframework.context.annotation.Import;
import domainapp.modules.petowner.PetOwnerModule;
import domainapp.modules.simple.SimpleModule;
+import domainapp.modules.visit.VisitModule;
@Configuration
@Import({
- PetOwnerModule.class,
+ VisitModule.class,
SimpleModule.class,
})
@ComponentScan
(causeway-app-petclinic) 09/10: adds maven dependency from application module to visit module
Posted by da...@apache.org.
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 bb28887545f0f4875537760da9252ed01ec85e30
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 17:17:25 2024 +0100
adds maven dependency from application module to visit module
---
webapp/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webapp/pom.xml b/webapp/pom.xml
index d23ff9f..6c25993 100644
--- a/webapp/pom.xml
+++ b/webapp/pom.xml
@@ -86,7 +86,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>simpleapp-jpa-module-petowner</artifactId>
+ <artifactId>simpleapp-jpa-module-visit</artifactId>
</dependency>
<dependency>
(causeway-app-petclinic) 03/10: adds pom.xml for visit module itself
Posted by da...@apache.org.
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 d6a18f97584bc71e8e9bd0dce792f73bc3355be2
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 16:34:08 2024 +0100
adds pom.xml for visit module itself
---
module-visit/pom.xml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/module-visit/pom.xml b/module-visit/pom.xml
new file mode 100644
index 0000000..d1a6af3
--- /dev/null
+++ b/module-visit/pom.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <artifactId>simpleapp-jpa</artifactId>
+ <groupId>org.apache.causeway.starters</groupId>
+ <version>2.0.0</version>
+ </parent>
+
+ <artifactId>simpleapp-jpa-module-visit</artifactId>
+ <name>SimpleApp (JPA) - Visit Module</name>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ </build>
+
+ <dependencies>
+
+ <!-- CAUSEWAY API -->
+
+ <dependency>
+ <groupId>org.apache.causeway.core</groupId>
+ <artifactId>causeway-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.causeway.testing</groupId>
+ <artifactId>causeway-testing-fakedata-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.causeway.extensions</groupId>
+ <artifactId>causeway-extensions-fullcalendar-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.causeway.extensions</groupId>
+ <artifactId>causeway-extensions-pdfjs-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.causeway.persistence</groupId>
+ <artifactId>causeway-persistence-jpa-applib</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.causeway.testing</groupId>
+ <artifactId>causeway-testing-fixtures-applib</artifactId>
+ </dependency>
+
+ <!-- IDE support (optional) -->
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-configuration-processor</artifactId>
+ <optional>true</optional>
+ </dependency>
+
+ </dependencies>
+
+</project>
(causeway-app-petclinic) 08/10: adds Spring import from visit module to petowner module
Posted by da...@apache.org.
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 23b809f3e13c36dd74aaa10d21f1e7cf3cfb7b70
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 17:17:11 2024 +0100
adds Spring import from visit module to petowner module
---
module-visit/src/main/java/domainapp/modules/visit/VisitModule.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java b/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java
index d1b8f87..2393291 100644
--- a/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java
+++ b/module-visit/src/main/java/domainapp/modules/visit/VisitModule.java
@@ -1,5 +1,7 @@
package domainapp.modules.visit;
+import domainapp.modules.petowner.PetOwnerModule;
+
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@@ -16,6 +18,8 @@ import org.apache.causeway.testing.fixtures.applib.teardown.jpa.TeardownFixtureJ
@Configuration
@Import({
+ PetOwnerModule.class,
+
CausewayModuleExtPdfjsApplib.class,
CausewayModuleExtFullCalendarApplib.class,
CausewayModuleTestingFakeDataApplib.class,
(causeway-app-petclinic) 01/10: adds iconname to Pet
Posted by da...@apache.org.
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 359bf5c443dc7a2bd1107b4cde410e1163fe2dbf
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 14:42:08 2024 +0100
adds iconname to Pet
... to dynamically specify the icon.
---
.../src/main/java/domainapp/modules/petowner/dom/pet/Pet.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/pet/Pet.java b/module-petowner/src/main/java/domainapp/modules/petowner/dom/pet/Pet.java
index 5e3872c..de5ba48 100644
--- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/pet/Pet.java
+++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/pet/Pet.java
@@ -20,6 +20,7 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.causeway.applib.annotation.DomainObject;
import org.apache.causeway.applib.annotation.DomainObjectLayout;
+import org.apache.causeway.applib.annotation.ObjectSupport;
import org.apache.causeway.applib.annotation.Property;
import org.apache.causeway.applib.annotation.PropertyLayout;
import org.apache.causeway.applib.annotation.Publishing;
@@ -73,6 +74,10 @@ public class Pet implements Comparable<Pet> {
this.name = name;
}
+ @ObjectSupport
+ public String iconName() {
+ return getSpecies().name().toLowerCase();
+ }
@ManyToOne(optional = false)
@JoinColumn(name = "owner_id")
(causeway-app-petclinic) 04/10: updates top-level pom.xml to include new visit module as child module
Posted by da...@apache.org.
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 f10d0a452b84b3101d73db2c62abf2427b7e4c0d
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sun May 26 16:35:11 2024 +0100
updates top-level pom.xml to include new visit module as child module
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index 87808c8..cde25c9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,6 +99,7 @@
<modules>
<module>module-petowner</module>
+ <module>module-visit</module>
<module>module-simple</module>
<module>module-simple-tests</module>
<module>webapp</module>