mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 10:58:42 +00:00
#348 - Data Tranfer Object : Add puml diagram.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -1,2 +1,21 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user