Posts

Showing posts from November, 2024

Github Project Link

https://github.com/sarthaksalgar28/RideShare--A-Sharing-Cab-Booking-Web-Application.git

Advanced Java Assign

  https://filetransfer.io/data-package/qAXbYmYs#link

poooooooooooooooooo

  < project xmlns = " http://maven.apache.org/POM/4.0.0 " xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation = " http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd " > < modelVersion >4.0.0</ modelVersion > < groupId >com.demo</ groupId > < artifactId >TestMaven1</ artifactId > < version >0.0.1-SNAPSHOT</ version > < name >TestMaven1</ name > < description >TestMaven1</ description > < properties > < hibernate.version >5.4.21.Final</ hibernate.version > < hibernate.validator >5.4.1.Final</ hibernate.validator > < maven.compiler.source >1.8</ maven.compiler.source > < maven.compiler.target >1.8</ maven.compiler.target > </ properties > < dependencies > ...
 package com.demo.beans; import java.time.LocalDate; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @Entity(name = "mavenemployee") public class Employee {          @Id // Indicate that this is the primary key     @GeneratedValue(strategy = GenerationType.IDENTITY) // Optional: auto-generate the primary key     private int eid;          private String ename;     private double sal;     private LocalDate doj;          @ManyToOne(fetch = FetchType.LAZY)     @JoinColumn(name = "depid")     private Department d;     public Employee() {         super();     }     public Employee(int eid, String ename, d...
 package com.demo.beans; import java.util.Set; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; @Entity(name = "mavendepartment") public class Department {          @Id // Indicate that this is the primary key     @GeneratedValue(strategy = GenerationType.IDENTITY) // Optional: auto-generate the primary key     private int deptid;          private String dname;     private String dloc;     @OneToMany(mappedBy = "d")     private Set<Employee> elist;     public Department() {         super();     }     public Department(int deptid, String dname, String dloc, Set<Employee> elist) {         super();         this.deptid = deptid;         th...
 package com.demo.test; import java.time.LocalDate; import java.util.HashSet; import java.util.Set; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import com.demo.beans.Department; import com.demo.beans.Employee; public class TestOneToManyBi {     public static void main(String[] args) {         SessionFactory sf = new Configuration().configure().buildSessionFactory();         Transaction tr = null;         Session sess = null;         try {             sess = sf.openSession();             tr = sess.beginTransaction();             Department d1 = new Department();             d1.setDeptid(1);             d1.setDname("IT");         ...

CGPA SGPA TO PERCENTAGE SPPU

  SGPA to Percentage SPPU

WEB JAVA

 package com.demo.servlets; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.demo.beans.CartItem; import com.demo.beans.Product; import com.demo.service.ProductService; import com.demo.service.ProductServiceImpl; /**  * Servlet implementation class AddToCart  */ @WebServlet(name = "AddOrShowCart", urlPatterns = { "/addToCart" }) public class AddToCart extends HttpServlet {     private static final long serialVersionUID = 1L;     private static final String BUTTON_ADD = "add";     private static final String BUTTON_SHOW = "show";     protected void doGet(HttpServletRequest request, HttpServletResponse res...

Title: Emergency Response:

 T itle:   Emergency Response: Ambulance Booking App   Objective:   To develop a mobile web application that streamlines the process of booking ambulances, ensuring timely medical assistance during emergencies. Key Features: User Interface:  Intuitive design for easy navigation, allowing users to book ambulances with minimal effort. Driver Interface:  A dedicated platform for ambulance drivers to receive requests, track their routes, and manage their availability. Real-Time Tracking:  Users can track the ambulance's location in real-time, providing peace of mind during emergencies. Payment Integration:  Secure payment options for users to settle ambulance service charges conveniently. Admin Dashboard:  A comprehensive admin panel for managing users, bookings, and monitoring service efficiency. Execution Plan: 1. Market Research: Identify target audience and demographics. Analyze competitors and their offerings. Gather data on user preferences...
  MySQL :: Download Connector/J

prepareStatement

  package com.demo.test; import java.sql.Connection; import java.sql.Date; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.time.LocalDate; public class TestPrepareStatement { public static void main(String[] args ) { try { DriverManager. registerDriver ( new com.mysql.cj.jdbc.Driver()); String url = "jdbc:mysql://192.168.10.127:3306/dac101" ; Connection conn =DriverManager. getConnection ( url , "dac101" , "welcome" ); PreparedStatement pst = conn .prepareStatement( "select * from student" ); ResultSet rs = pst .executeQuery(); while ( rs .next()) { System. out .println( "Roll_No :" + rs .getInt(1)); System. out .println( "FNAME :" + rs .getString(2)); System. out .println( "LNAME :" + rs .getString(3)); System. out .println( "DOB :" + rs .getDate(4)); Sys...
 Project Plan for Web-Based Salary Manager Using React, Spring Boot, and Microservices 1. Project Pitch Objec ve: To develop a web-based Salary Manager applica on that allows users to manage their monthly earnings, allocate funds to various categories (SIP, EMIs, extra expenses, and high-growth investments), and calculate returns over a period of 10 years. According to a survey conducted by the Na onal Centre for Financial Educa on (NCFE), only 24% of the Indian populademographic, indica on is financially literate. This includes a significant por on of the youth  ng a lack of understanding of financial planning and investment. A report by the Na onal Ins tute of Securi es Markets (NISM) found that 70% of young professionals (ages 18-30) do not invest their savings, leading to missed opportuni es for wealth accumula on. According to a survey by the Reserve Bank of India (RBI), 60% of young earners do not have a structured budget, leading to unplanned expenses and financial stre...