Newer
Older
labs / tiddlers / content / labs / lab02 / _Labs_02_images_Project Domain Model.tid
created: 20200702091026430
modified: 20200707005526287
tags: image lab lab02
title: /Labs/02/images/Project Domain Model
type: text/vnd.tiddlywiki

<svg contentScriptType="application/ecmascript" contentStyleType="text/css" height="462" preserveAspectRatio="none" viewBox="0 0 640 462" width="640" xmlns="http://www.w3.org/2000/svg" zoomAndPan="magnify"><rect fill="#fefece" height="194.7995" rx="4" stroke="#a80036" stroke-width="1.5" width="297" x="7" y="7"/><text font-family="sans-serif" font-size="16" lengthAdjust="spacing" textLength="69" x="121" y="28.864">Customer</text><path d="m8 40.2h295" stroke="#a80036" stroke-width="1.5"/><g font-family="sans-serif" font-size="14"><text lengthAdjust="spacing" textLength="281" x="15" y="59.206">-customerId : Integer «unique» «generated»</text><text lengthAdjust="spacing" textLength="185" x="15" y="80.0059">-username : String «unique»</text><text lengthAdjust="spacing" textLength="115" x="15" y="100.8058">-firstName : String</text><text lengthAdjust="spacing" textLength="110" x="15" y="121.6058">-surname : String</text><text lengthAdjust="spacing" textLength="115" x="15" y="142.4057">-password : String</text><text lengthAdjust="spacing" textLength="140" x="15" y="163.2056">-emailAddress : String</text><text lengthAdjust="spacing" textLength="159" x="15" y="184.0055">-shippingAddress : String</text></g><path d="m8 193.7995h295" stroke="#a80036"/><rect fill="#fefece" height="173.9996" rx="4" stroke="#a80036" stroke-width="1.5" width="201" x="424" y="17.5"/><text font-family="sans-serif" font-size="16" lengthAdjust="spacing" textLength="55" x="497" y="39.364">Product</text><path d="m425 50.7h199" stroke="#a80036" stroke-width="1.5"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="177" x="432" y="69.706">-productId : String «unique»</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="90" x="432" y="90.5059">-name : String</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="123" x="432" y="111.3058">-description : String</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="109" x="432" y="132.1058">-category : String</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="137" x="432" y="152.9057">-listPrice : BigDecimal</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="185" x="432" y="173.7056">-quantityInStock : BigDecimal</text><path d="m425 183.4996h199" stroke="#a80036"/><rect fill="#fefece" height="153.1997" rx="4" stroke="#a80036" stroke-width="1.5" width="264" x="26.5" y="302"/><text font-family="sans-serif" font-size="16" lengthAdjust="spacing" textLength="33" x="142" y="323.864">Sale</text><path d="m27.5 335.2h262" stroke="#a80036" stroke-width="1.5"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="248" x="34.5" y="354.206">-saleId : Integer «unique» «generated»</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="141" x="34.5" y="375.0059">-date : LocalDateTime</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="96" x="34.5" y="395.8058">-status : String</text><path d="m27.5 405.5998h262" stroke="#a80036"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="153" x="34.5" y="424.6058">+getTotal() : BigDecimal</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="230" x="34.5" y="445.4057">+addItem(saleItem : SaleItem) : void</text><rect fill="#fefece" height="111.5998" rx="4" stroke="#a80036" stroke-width="1.5" width="222" x="411.5" y="322.5"/><text font-family="sans-serif" font-size="16" lengthAdjust="spacing" textLength="63" x="491" y="344.364">SaleItem</text><path d="m412.5 355.7h220" stroke="#a80036" stroke-width="1.5"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="206" x="419.5" y="374.706">-quantityPurchased : BigDecimal</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="146" x="419.5" y="395.5059">-salePrice : BigDecimal</text><path d="m412.5 405.2999h220" stroke="#a80036"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="181" x="419.5" y="424.3058">+getItemTotal() : BigDecimal</text><path d="m156.6252 207.2711c.3435 31.3676.7149 65.2931 1.0359 94.6079" fill="none" stroke="#a80036"/><path d="m156.5704 202.2599-3.9013 9.0432 3.956-4.0435 4.0435 3.956z" fill="#a80036" stroke="#a80036"/><text font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="24" x="128.3327" y="224.7394">1..1</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="64" x="84.3327" y="241.5393">-customer</text><path d="m290.7344 378.5h115.2356" fill="none" stroke="#a80036"/><path d="m411.1439 378.5-9-4 4 4-4 4z" fill="#a80036" stroke="#a80036"/><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="39" x="362.4632" y="355.4653">-items</text><text font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="16" x="376.4632" y="372.2652">0..</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="5" x="392.4632" y="372.2652">*</text><path d="m523.8276 196.6183c-.304 41.6437-.6533 89.5073-.9174 125.6787" fill="none" stroke="#a80036"/><path d="m523.8644 191.5718-4.066 8.9704 4.0293-3.9705 3.9705 4.0292z" fill="#a80036" stroke="#a80036"/><text font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="24" x="495.5779" y="214.3527">1..1</text><text font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="53" x="462.5779" y="231.1526">-product</text></svg>