-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement Java entity classes for DB integration in Spring project #81
Comments
A friendly reminder that this issue is a blocker of #82. |
I am implementing the users. |
I have implemented the Users but I am not sure if I did it right. @melihakpinar can you review it? |
Sure thanks, could you please create a pull request to backend branch and add me as a reviewer? |
I am not able to push it? I don't know why. |
Fixed and pushed. |
While implementing like and dislike relations, there are two ways to implement these:
Which one should I implement? |
I’d suggest defining likeID, seems simpler and more flexible. |
We have another problem: We do not want a user to like and dislike a post at the same time. I have 3 suggestions but I do not know which one would be better to implement:
I am open for other suggestions too |
I have done some research on it and the articles that I have come across with are doing it with defining a class. @melihakpinar @SturmR @Pqrq what are you thinking about? |
I have realized something, we do not hold special ID's for relations. Which means if we use the id method, we would probably have sql issues :/ |
For ease of use in the future, i implement them as classes. Finished all the classes. There is a pending pull request. |
ℹ️ Description
Create Java classes that will serve as entities in our project's database. These classes will be placed in the
models
directory of our Spring project.🎯 Tasks
Develop Java entity classes that correspond to the database schema. Each class should be annotated with Spring's @entity and should include fields, constructors, getters, and setters relevant to the database columns. Look at the ER diagram for attributes. (You can see an example here.)
The text was updated successfully, but these errors were encountered: