Controller DAL DB
| | |
| get entity | |
|----------->| get entity data |
| |---------------->|
| |< - - - - - - - -|
| | |
| |-- |
| | |create entity |
| |<- |
|<- - - - - -| |
note: "Create entity" is a "self-message", so it starts from DAL's lifeline and goes back into DAL's lifeline. I just can't draw it better with characters. Forward messages are continous line, reply messages are dashed line.
EDIT: reflecting on comment, you can also show Entity's lifeline, if it's important.
Controller DAL DB
| | |
| get entity | |
|----------->| get entity data |
| |---------------->|
| |< - - - - - - - -|
| | |
| entity |---->Entity |
|<- - - - - -| | |
| | | |
It's useful if you want to show other calls to Entity as well.