S++Business systems language
DEMO SOURCE · SPP / APP / PHYRead the book

customer.phy

customer/customer.phy

Download original file · Petstore source contents

1domain customer;23phy {4    environment develop {5        repository shopRecords {6            adapter jdbcObjectRepository;7            config default = true;89            config appDdlTables = true;10            config datasourceUrl = "${spp.petstore.datasource-url:jdbc:h2:mem:petstore;DB_CLOSE_DELAY=-1}";11            config driverClassName = "org.h2.Driver";12            config table = "petstore_records";13        }14        backend shopDatabase {15            adapter localJdbc;16            at shopRecordsResource;17            repository shopRecords;18            config datasourceUrl = "${spp.petstore.datasource-url:jdbc:h2:mem:petstore;DB_CLOSE_DELAY=-1}";19            config driverClassName = "org.h2.Driver";20        }21    }22    environment testing {23        config domainRpcToken = "${spp.petstore.testing.rpc-token}";24        repository shopRecords {25            adapter jdbcObjectRepository;26            config default = true;27            config appDdlTables = true;28            config datasourceUrl = "${spp.petstore.testing.customer-url:jdbc:h2:file:./petstore-demo/target/testing-customer;DB_CLOSE_DELAY=-1}";29            config driverClassName = "org.h2.Driver";30            config table = "petstore_records";31        }32        backend shopDatabase {33            adapter localJdbc;34            saga shopRecordsResource;35            repository shopRecords;36            config datasourceUrl = "${spp.petstore.testing.customer-url:jdbc:h2:file:./petstore-demo/target/testing-customer;DB_CLOSE_DELAY=-1}";37            config driverClassName = "org.h2.Driver";38        }39    }40}