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

cboddeposit.phy

cboddeposit/cboddeposit.phy

Download original file · Bank deposit source contents

1domain cboddeposit;23phy {4    numeric {5        replace BigDecimal(19, 2) with BigDecimal(25, 6);6    }7    config requestIdempotencyAdapter = "jdbc";8    environment develop {9        repository cashRecords {10            adapter jdbcObjectRepository;11            config default = true;12            config appDdlTables = true;13            config datasourceUrl = "${spp.xbod.datasource-url:jdbc:h2:mem:xbod-deposit;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";14            config driverClassName = "org.h2.Driver";15            config table = "xbod_cash_record";16        }17        backend cashDatabase {18            adapter localJdbc;19            at;20            quantum cashLedger;21            repository cashRecords;22            quantumStore cashLedger;23            config datasourceUrl = "${spp.xbod.datasource-url:jdbc:h2:mem:xbod-deposit;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";24            config driverClassName = "org.h2.Driver";25        }26        quantumStore cashLedger {27            adapter jdbcQuantum;28            config datasourceUrl = "${spp.xbod.datasource-url:jdbc:h2:mem:xbod-deposit;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";29            config driverClassName = "org.h2.Driver";30            config journalStore = "free.servpp.service.transaction.JdbcQuantumJournalStore";31            config journalTable = "xbod_quantum_journal";32            config valueTable = "xbod_quantum_value";33            config decimalStorage = "text";34        }35    }36    environment testing {37        repository cashRecords {38            adapter jdbcObjectRepository;39            config default = true;40            config appDdlTables = true;41            config datasourceUrl = "${spp.xbod.datasource-url:jdbc:h2:mem:xbod-deposit;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";42            config driverClassName = "org.h2.Driver";43            config table = "xbod_cash_record";44        }45        backend cashDatabase {46            adapter localJdbc;47            saga cashRecordsResource;48            repository cashRecords;49            config datasourceUrl = "${spp.xbod.datasource-url:jdbc:h2:mem:xbod-deposit;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";50            config driverClassName = "org.h2.Driver";51        }52        backend cashQuantumDatabase {53            adapter localJdbc;54            quantum cashLedger;55            quantumStore cashLedger;56            config datasourceUrl = "${spp.xbod.testing.ledger-url:jdbc:h2:mem:xbod-ledger;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";57            config driverClassName = "org.h2.Driver";58        }59        quantumStore cashLedger {60            adapter jdbcQuantum;61            config datasourceUrl = "${spp.xbod.testing.ledger-url:jdbc:h2:mem:xbod-ledger;DB_CLOSE_DELAY=-1;WRITE_DELAY=0}";62            config driverClassName = "org.h2.Driver";63            config journalStore = "free.servpp.service.transaction.JdbcQuantumJournalStore";64            config journalTable = "xbod_quantum_journal";65            config valueTable = "xbod_quantum_value";66            config decimalStorage = "text";67        }68    }69}