Skip to content

Dao

8 classes with inheritance, association

classDiagram
    class Manager {
        +int id
        +int budget
    }
    class PersonId {
        +String firstName
        +String lastName
        +String city
    }
    class Artist {
        +String Attribute1
        -String bandName
        -String size
        -int id
        -String year
        -String country
        -int size
    }
    class Person {
        +String id
        +String id
        -String firstName
        +int firstname
        +String lastname
        +boolean haveWebAccess
    }
    class CategoryEnum {
        +String TYPE_A
        +String TYPE_B
        +String TYPE_C
    }
    class Album {
        -String id
        -String title
        -int releaseYear
    }
    class Registration {
        +int id
        +Object registrationDate
        +String category
    }
    class Preferences {
        +String favMusicStyle
        +String favMusicInstrument
    }
    Person --> PersonId
    Person --> Preferences
    Artist "0..*" --> "0..*" Album
    Artist "1" --> "1" Registration
    Artist --|> Person
    Manager --|> Person
    Manager "1" --> "0..*" Artist
    Registration --> CategoryEnum