Skip to content

Conversation

@zaklim
Copy link

@zaklim zaklim commented Jan 11, 2022

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