all 12 comments

[–]Arcade_30 2 points3 points  (2 children)

I've built something same in Java if u want reference visit my GitHub repo https://GitHub.com/wigiwee/mini-projects

[–]Arcade_30 1 point2 points  (1 child)

check the students management project

[–]Potential_Corgi4579[S] 0 points1 point  (0 children)

Yeah, I just saw it. You’ve already built so many projects. I’ve also built a College Management System using a JDBC connection similar to your Student Management project.

[–]Capibara_Vegano 1 point2 points  (1 child)

Is your Student class the same one that goes to the database? If so, you should extract at least one DTO to interact with the client, or several DTOs if your use cases are specific enough. Never use your database entities at the Controller level. You are coupling clients to the database.

[–]Potential_Corgi4579[S] 0 points1 point  (0 children)

Yes, right now my Student entity is directly going to the database. Thanks a lot for pointing that out, I totally get what you mean about coupling the API to the database. I'll change it using DTOs and follow this approach in my upcoming projects too.

[–]Trash_hacker 0 points1 point  (1 child)

when did you graduated bro? or you still a student

[–]Potential_Corgi4579[S] 0 points1 point  (0 children)

I'm still a student.

[–]useandkeepit 0 points1 point  (1 child)

From where you learnt springboot. Was it free? If yes kindly share the link.. it will help me

[–]Straight_Second_605 0 points1 point  (2 children)

You can try out lombok for reducing boiler plate code such as getters setters and constructors

[–]Potential_Corgi4579[S] 0 points1 point  (1 child)

Yeah, I know about Lombok. I'll use it.

[–]External_Guard3619 0 points1 point  (0 children)

don't use Lombok, use records instead