Completing My Database application using spring orm | Spring ORM Tutorial in HINDI

preview_player
Показать описание
Important Videos:

Important Playlist:

Important Links:

Disclaimer:
All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
Рекомендации по теме
Комментарии
Автор

*For update DAO Class Method*
//update
@Transactional
public void updateStudent(int id, String name, String city)
{
Student student = this.hibernateTemplate.get(Student.class, id);
student.setName(name);
student.setCity(city);

}

*In **App.java*

case 5:
Student
ID: ");
uId=sc.nextInt();
name: ");
uName=sc.next();
City: ");
uCity=sc.next();
uName, uCity);
id Student is updated...!");

maheshadmane
Автор

case 5: //Updating the Item in table


System.out.println("Enter Id of the Student to be update:");
int mId =
System.out.println("Enter the Student Name to be update:");
String mName = br.readLine();
System.out.println("Enter the Student City to be update:");
String mCity = br.readLine();

Student sd1 = new Student();
sd1.setStudentId(mId);

sd1.setCity(mCity);

System.out.println("User Updated....");

break;

gauravjohari
Автор

sir humne ye sab Nataraz sir se sikha h, Ameerpet Hyderabad me, , revise krne k liye aapke videos useful hain, , Thank you so much..

arbajshaikh
Автор

This entire playlist is seriously a top quality tutorial. glad I found it.

nirmalgurjar
Автор

thank you sir.... so much for saving our lakhs

aniruddhachunne
Автор

Thank you would never be enough to express how helpful your videoes are! Extremely informative and life saving sir.

prathyushakotamraju
Автор

case 5:
update student
student id to update: ");
stUpdId =

studentUpdate =
1 to update name");
2 to update city");

UpRs =

(UpRs) {
1:
new name to update:");
uname = br.readLine();



updated succsfully ...");


2:
new city to update:");
ucity = br.readLine();



updated succsfully ...");






After taking help from other comments. i did

chandanmohanty
Автор

case 5:
student

user id which you want to update: ");


new student city: ");
c=br.readLine();
new student name: ");
s1=br.readLine();

st1=new Student();





updated successfully...");


akashbhosale
Автор

Update what you want :



ID");
Id1 =

you want to update name also type 1/2");


Name1="";
City1 ="";


std1 = studentDao.getStudent(Id1);


(key) {

1:
Name");
= br.readLine();


2:

Retreiving Old Name from DB");

*/
"+std1.getName()+" "+"Retrieved");










you want to update City type 1/2");




(key1) {

1:
City");
= br.readLine();


2:
Retreiving City Name from DB");


"+std1.getCity()+" "+"Retrieved");








Creating student object and setting value */


stu = new Student(Id1, Name1, City1);


System.out.println("ID number: "+Id1+ " has been successfully updated");


harideoarya
Автор

case 5:
update the student
user id to be updated : ");

r1 =

student5 = studentDao.getStudent(r1);

u have to enter new value of all attributes one by one");

new user id : ");
x1 =


new user name :");
x2 = br.readLine();


user city :");
x3 = br.readLine();



with id " + r1 + "has been updated");



vikasjha
Автор

This video in correctly in sequence. Move this video one positon above

UpendraKumar-mumk
Автор

Update Method code
case 5:
//update the students
System.out.println("Enter the student id to be updated");
int updatedId =

System.out.println("Press 1 for update the name");
System.out.println("Press 2 for update the city\n");

System.out.println("Enter your choise for what do you want to update?");
int choice =

Student std1 =

String updatedName = std1.getStudentName();
String updatedCity = std1.getStudentCity();

switch (choice)
{
case 1:
the name to be updated");
= br.readLine();
the student objects value
= new Student(updatedId, updatedName, updatedCity);
updated successfully");


case 2:
the city name to be updated");
= br.readLine();
the student objects value in another way



updated successfully");

}


successfully\n");

break;

saurabhkumarjha
Автор

Badhiya bola Javafx best hai GUI ke
Bahut Advanced hai and customizable bhi..

hrishavdhawajpurkayastha
Автор

Sir please make a vedio how to update the student data . Wo jo apne assignment diye the, uska please ek vedio bana dijiye sir

anweshabhisek
Автор

Thanks a lot to make this easy learning

mohammadshahul
Автор

Will you upload some video on competitive programming..??

akshaykohale
Автор

My delete operation is running fine but not deleting the student actually. It shows that student id is delete but when i press option 2 to check all student, same student id is still present. How can i delete permanently this. Any idea.

mcachoudhary
Автор

update code: case 5:
System.out.print("type in the id of student you want to update:");
int oldId =
System.out.print("Enter new user name:");
String namee= br.readLine();
System.out.print("Enter new user city:");
String cityy= br.readLine();

Student student3 = new Student(oldId, namee, cityy);

System.out.println("one row updated");
break;

stite
Автор

Sir i have made this program using if else and used only 1 break to terminate ....
Thank you so much sir for this amazing sereis... I wanted to learn frameworks and finally i come to learn it perfectly by watching your tutorials

priyankpanchal
Автор

Sir data base ke liye kon kon si programing language padna chaiye

jayukekan
welcome to shbcf.ru