You are on page 1of 1

U ser

invariant - A ddress: String


{pay > 0 - birthD ate: Date invariant
0<= rating <= 1} - C ity: S tring {F irstN am e.length()!=0;
- C ountry: String LastN am e.length()!=0;
- E m ail: S tring em ail is unique
- F irstName: String em ail.length()!=0 &&
- Id: long {id} e m ail != null;
- joinedD ate: Date password contains at
- LastN ame: String least one digit
R egistration age >=18
- password: String
- phone: S tring password.length()>7}
- pay: double
- rating: double - Z ipC ode: String

W o rker +belongs Client


Field T ask to
+works in +has +has +works in +creates - blocked: boolean = false
- rating: double = 0.5
- Id: long {id} - Id: long
0 ..* 1 ..* 0 ..* - 0 ..* 1 +
- nam e: string 0 ..* + getR ating(): double rated: boolean getB locked(): boolean
{ordered} {ordered} + setB locked(boolean)
{ordered} + setR ating(double)

O ffer

- endD ate: Date


- field: F ield*
- hours: int
- Id: long {id}
- startDate: Date

JobOffer

- accepted: boolean
- declined: boolean
- endD ate: Date
- hours: int
- Id: long {id}
- location: S tring
- offer: Date
- payP erH our: double
- seen: boolean
- startDate: Date

You might also like