Skip to content
PlantUML templates

Repository Pattern (PlantUML)

A generic repository interface with implementations.

Template previewPlantUML
Rendering…

Make it your own.

@startuml
interface Repository {
  +findById(id)
  +findAll()
  +save(entity)
  +delete(id)
}
class UserRepository
class OrderRepository
class User
class Order
Repository <|.. UserRepository
Repository <|.. OrderRepository
UserRepository ..> User
OrderRepository ..> Order
@enduml