#348 - Data Tranfer Object : Add puml diagram.
This commit is contained in:
parent
148de06bb1
commit
229fda9f3c
BIN
data-transfer-object/etc/data-transfer-object.urm.png
Normal file
BIN
data-transfer-object/etc/data-transfer-object.urm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
@ -1,2 +1,21 @@
|
|||||||
@startuml
|
@startuml
|
||||||
|
package com.iluwatar.datatransfer {
|
||||||
|
class CustomerDto {
|
||||||
|
- firstName : String
|
||||||
|
- id : String
|
||||||
|
- lastName : String
|
||||||
|
+ CustomerDto(id : String, firstName : String, lastName : String)
|
||||||
|
+ getFirstName() : String
|
||||||
|
+ getId() : String
|
||||||
|
+ getLastName() : String
|
||||||
|
}
|
||||||
|
class CustomerResource {
|
||||||
|
- customers : List<CustomerDto>
|
||||||
|
+ CustomerResource(customers : List<CustomerDto>)
|
||||||
|
+ delete(customerId : String)
|
||||||
|
+ getAllCustomers() : List<CustomerDto>
|
||||||
|
+ save(customer : CustomerDto)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CustomerResource --> "-customers" CustomerDto
|
||||||
@enduml
|
@enduml
|
Loading…
x
Reference in New Issue
Block a user