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

petshop-01-external-entities.spp

petshop/shared/petshop-01-external-entities.spp

Download original file · Petstore source contents

1domain petshop;23Reference Person from customer.Person {4    business("Customer-domain subject registration number") String customerNumber;5    String name;6    String email;7    String address;8}910Reference Product from product.Product {11    business("Product catalogue number") String productCode;12    String name;13    String category;14    String description;15    BigDecimal(9, 2) cost;16}1718Reference CatalogProduct from product.CatalogProduct {19    String sku;20    String name;21    String category;22    String description;23    boolean active;24}2526take Goods as CatalogProduct {27    mapsame;28}2930take Buyer as Person {31    mapsame;32}3334take Merchant as Person {35    mapsame;36}