ECommerceService.java | ECommerceService class for ECommerce Platform project with spring Boot , react and mysql -- project code is in description
Welcome to my Viraj Tech YouTube channel new to the channel please subscribe to the channel... & turn on the bell icon by clicking and making it to 'all' to get more interesting and technical videos.
If you like the video or video provide you any help or support, hit the like button. For any query comment below in the comment section I will try to help you and also try to sort out all your problems as soon as possible.
Thanks for Watching...
package com.virajtech.ecommerce.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.virajtech.ecommerce.model.ECommerce;
import com.virajtech.ecommerce.repository.ECommerceRepository;
@Service
public class ECommerceService {
@Autowired
private ECommerceRepository eCommerceRepository;
public List(angled bracket)ECommerce(angled bracket) getECommerces() {
return eCommerceRepository.findAll();
}
public ECommerce getECommerceById(long id) {
return eCommerceRepository.findById(id).orElse(null);
}
public ECommerce saveECommerce(ECommerce eCommerce) {
return eCommerceRepository.save(eCommerce);
}
public ECommerce updateECommerce(long id, ECommerce eCommerce) {
ECommerce existingECommerce = eCommerceRepository.findById(id).orElse(null);
existingECommerce.setName(eCommerce.getName());
existingECommerce.setDescription(eCommerce.getDescription());
existingECommerce.setPrice(eCommerce.getPrice());
return eCommerceRepository.save(existingECommerce);
}
public void deleteECommerce(long id) {
eCommerceRepository.deleteById(id);
}
}
----------------------------------------------------------------------------------------------------------------------------------------
INSTAGRAM :- https://www.instagram.com/VIRAJTECHS
FACEBOOK :- https://www.facebook.com/VIRAJTECHS
TWITTER :- https://twitter.com/VIRAJTECHS
TELEGRAM :- https://t.me/virajtech
GITHUB :- https://github.com/virajvicky
----------------------------------------------------------------------------------------------------------------------------------------
Subscribe to my main channel
https://www.youtube.com/c/VIRAJTECHS
also Subscribe to my second channel
https://www.youtube.com/channel/UCM-kZGcJXJJtyHyKU-neybg
APK LINK:-
Salesforce Trailhead playlist
https://youtube.com/playlist?list=PLRU-dokJWxnOxh--ax8TpzpleBXSncKTM
Spring Boot playlist
https://www.youtube.com/playlist?list=PLRU-dokJWxnN0W1z7ITQBMsDa8WSkOIuu
Github playlist
https://www.youtube.com/playlist?list=PLRU-dokJWxnPn3UJuXA2S15CEs8wZDqgh
Music Credit:-
Music Link:-
Disclaimer :
This channel doesn't Promote or Encourage any illegal activity & All contents provided by this Channel are Meant for Educational Purpose only.
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use
ecommerceservice class using spring boot and react,
e commerce project using spring boot and react,
e-commerce website using spring boot and react,
e commerce project using spring boot and reactjs,
spring boot booking system,
how to create controller class in spring boot,
e commerce project using spring boot,
ecommerce java spring boot,
spring boot and react application,
e commerce using spring boot and angular,
how to write service class in spring boot,
java spring boot ecommerce project,
java spring boot and react project,
java spring boot e commerce,
what is transaction in spring boot,
e commerce using spring boot,
how to create service class in spring boot,
react spring boot ecommerce project,
ecommerce project using spring boot and angular,
spring boot ecommerce project,
spring boot web client,
spring boot and react tutorial,
spring boot and react integration,
e commerce application spring boot,
ecommerce using spring boot,
ecommerce project using spring boot,
ecommerce website using spring boot and thymeleaf
viraj tech
#springboot
#spring
#springboottutorial
#javaspringboot
#learnspringboot
#springbootjava
#thymeleaf
#springmvc
#springdatajpa
#springcore
#springmaven
#maven
#mvc
#bootstrap
#tailhead
#css
#html
#java
#corejava
#advancejava
#reactjs
#react
#mysql
#database
#frontend
#backend
#fullstack
#crud
#crudoperation
#axios
#reactrouterdom
#reactrouter
#reactvite
#vitereact
#vite
#javascript
#js
#reactjavascript
#javascriptreact
#viraj_tech
#CodingTutorial
#WebDevelopment
#Programming
#LearnToCode
Welcome to my Viraj Tech YouTube channel new to the channel please subscribe to the channel... & turn on the bell icon by clicking and making it to 'all' to get more interesting and technical videos.
If you like the video or video provide you any help or support, hit the like button. For any query comment below in the comment section I will try to help you and also try to sort out all your problems as soon as possible.
Thanks for Watching...
package com.virajtech.ecommerce.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.virajtech.ecommerce.model.ECommerce;
import com.virajtech.ecommerce.repository.ECommerceRepository;
@Service
public class ECommerceService {
@Autowired
private ECommerceRepository eCommerceRepository;
public List(angled bracket)ECommerce(angled bracket) getECommerces() {
return eCommerceRepository.findAll();
}
public ECommerce getECommerceById(long id) {
return eCommerceRepository.findById(id).orElse(null);
}
public ECommerce saveECommerce(ECommerce eCommerce) {
return eCommerceRepository.save(eCommerce);
}
public ECommerce updateECommerce(long id, ECommerce eCommerce) {
ECommerce existingECommerce = eCommerceRepository.findById(id).orElse(null);
existingECommerce.setName(eCommerce.getName());
existingECommerce.setDescription(eCommerce.getDescription());
existingECommerce.setPrice(eCommerce.getPrice());
return eCommerceRepository.save(existingECommerce);
}
public void deleteECommerce(long id) {
eCommerceRepository.deleteById(id);
}
}
----------------------------------------------------------------------------------------------------------------------------------------
INSTAGRAM :- https://www.instagram.com/VIRAJTECHS
FACEBOOK :- https://www.facebook.com/VIRAJTECHS
TWITTER :- https://twitter.com/VIRAJTECHS
TELEGRAM :- https://t.me/virajtech
GITHUB :- https://github.com/virajvicky
----------------------------------------------------------------------------------------------------------------------------------------
Subscribe to my main channel
https://www.youtube.com/c/VIRAJTECHS
also Subscribe to my second channel
https://www.youtube.com/channel/UCM-kZGcJXJJtyHyKU-neybg
APK LINK:-
Salesforce Trailhead playlist
https://youtube.com/playlist?list=PLRU-dokJWxnOxh--ax8TpzpleBXSncKTM
Spring Boot playlist
https://www.youtube.com/playlist?list=PLRU-dokJWxnN0W1z7ITQBMsDa8WSkOIuu
Github playlist
https://www.youtube.com/playlist?list=PLRU-dokJWxnPn3UJuXA2S15CEs8wZDqgh
Music Credit:-
Music Link:-
Disclaimer :
This channel doesn't Promote or Encourage any illegal activity & All contents provided by this Channel are Meant for Educational Purpose only.
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use
ecommerceservice class using spring boot and react,
e commerce project using spring boot and react,
e-commerce website using spring boot and react,
e commerce project using spring boot and reactjs,
spring boot booking system,
how to create controller class in spring boot,
e commerce project using spring boot,
ecommerce java spring boot,
spring boot and react application,
e commerce using spring boot and angular,
how to write service class in spring boot,
java spring boot ecommerce project,
java spring boot and react project,
java spring boot e commerce,
what is transaction in spring boot,
e commerce using spring boot,
how to create service class in spring boot,
react spring boot ecommerce project,
ecommerce project using spring boot and angular,
spring boot ecommerce project,
spring boot web client,
spring boot and react tutorial,
spring boot and react integration,
e commerce application spring boot,
ecommerce using spring boot,
ecommerce project using spring boot,
ecommerce website using spring boot and thymeleaf
viraj tech
#springboot
#spring
#springboottutorial
#javaspringboot
#learnspringboot
#springbootjava
#thymeleaf
#springmvc
#springdatajpa
#springcore
#springmaven
#maven
#mvc
#bootstrap
#tailhead
#css
#html
#java
#corejava
#advancejava
#reactjs
#react
#mysql
#database
#frontend
#backend
#fullstack
#crud
#crudoperation
#axios
#reactrouterdom
#reactrouter
#reactvite
#vitereact
#vite
#javascript
#js
#reactjavascript
#javascriptreact
#viraj_tech
#CodingTutorial
#WebDevelopment
#Programming
#LearnToCode
Commentaires