u/Smoke_DeGrass_Tysonin r/typescript • Recommends
On “A Full Stack TypeScript+Java App I created after working a year as a Junior Dev”
…inal random UUID for each entity upon instantiation and adding it to the equals/hashcode. Wouldn't recommend using the generated ID.
Also, learn how to properly use Optionals.
A nitpick is the package structure. Would do by feature rather than by type. Much easier to maintain. Also look into how trasaction-management works in depth.
see:
1: [video
2: https://junit.org/junit5/docs/current/user-guide/#writing-tests-assertions
3: https://vladmihalcea.com/eager-fetching-is-a-code-smell/
4: [video…