mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 04:16:14 +00:00
#348 - Data Tranfer Object : Add puml diagram.
This commit is contained in:
1 parent
148de06bb1
commit
229fda9f3c
2 files changed
+19
No files matched your search
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
|
||||||
Reference in new issue
Block a user