Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Implementationen im ValidationBase #1332

Open
2 tasks
MasterEvarior opened this issue Jan 23, 2025 · 0 comments
Open
2 tasks

Default Implementationen im ValidationBase #1332

MasterEvarior opened this issue Jan 23, 2025 · 0 comments

Comments

@MasterEvarior
Copy link
Collaborator

Im ValidationBase hat es die Methoden public abstract void validateOnCreate(T model) und public abstract void validateOnUpdate(I i, T model). Die Implementation sieht sich an vielen Stellen sehr änhlich, bzw. ist sogar identisch.

Deshalb soll es eine sinnvolle Standardimplementation dafür geben, welche dann in den spezifischen Services überschrieben werden kann.

https://github.com/puzzle/okr/blob/main/backend/src/main/java/ch/puzzle/okr/service/validation/ValidationBase.java#L49

Anforderungen

  • Unnötige Duplizierung wird vermieden
  • Die Methoden haben jeweils eine Standardimplementation

Akzeptanzkriterien

  • Alle Tests sind OK
  • Es gibt für beide Methoden eine sinnvollen Standardimplementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant