Skip to content

Update StudentController.java - #1

Open
zaklim wants to merge 1 commit into
RameshMF:mainfrom
zaklim:patch-1
Open

Update StudentController.java#1
zaklim wants to merge 1 commit into
RameshMF:mainfrom
zaklim:patch-1

Conversation

@zaklim

@zaklim zaklim commented Jan 11, 2022

Copy link
Copy Markdown

1- Why not using @Autowired ?
2- Spring Data JPA has the save() method which does both inserting and updating depending on the context; if the entity has the id(primary_key), then it will perform an update, otherwise it will save it as a new item.

1- Why not using @Autowired ?
2- Spring Data JPA has the save() method which does both inserting and updating depending on the context; if the entity has the id(primary_key), then it will perform an update, otherwise it will save it as a new item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant