Skip to content

A Java-based application for managing hotel bookings efficiently. Built with JDBC and designed in IntelliJ IDEA, it integrates seamlessly with MySQL for storing reservation data. Manage bookings, view reservations, and update guest details with ease. Ideal for streamlined hotel management.

Notifications You must be signed in to change notification settings

prithvirajbaral/HotelReservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotel Reservation System

This is my first project using Java. It is a comprehensive Hotel Reservation System built with Java, JDBC, IntelliJ IDEA, and MySQL.

Features

  1. Reserve a Room: Book rooms with necessary details.
  2. View Reservations: Retrieve and display all current reservations.
  3. Get Room Number: Obtain the room number for a specific reservation.
  4. Update Reservations: Modify existing reservations to reflect changes.
  5. Delete Reservations: Remove reservations as needed.

Setup Instructions

  1. Clone the repository:
    git clone https://github.com/your-username/HotelReservationSystem.git
  2. Navigate to the project directory:
    cd HotelReservation
  3. Import the project into IntelliJ IDEA.
  4. Update the database connection details in HotelReservationSystem.java:
    private static final String jdbcUrl = "jdbc:mysql://localhost:3306/your-database";
    private static final String username = "your-username";
    private static final String password = "your-password";

Replace your-password with your MySQL database password.

  1. Connect MySQL Connector/J:

    • Download MySQL Connector/J from MySQL official website
    • Add the Connector/J JAR file to your IntelliJ IDEA project
      • Right-click on your project in IntelliJ IDEA.
      • Select "Open Module Settings".
      • Go to "Libraries" and click on the "+" sign to add the Connector/J JAR file.
  2. Run the project from IntelliJ IDEA.

Notes:

  • Make sure to replace your-username, your-password, and hotel_db with your actual MySQL credentials and database name.
  • Detailed instructions are provided for cloning the repository, setting up the project in IntelliJ IDEA, updating database connection details, and connecting MySQL Connector/J.

This README.md file will guide users on how to set up and run your Hotel Reservation System project effectively. Adjust the instructions as per your specific project requirements and preferences.

About

A Java-based application for managing hotel bookings efficiently. Built with JDBC and designed in IntelliJ IDEA, it integrates seamlessly with MySQL for storing reservation data. Manage bookings, view reservations, and update guest details with ease. Ideal for streamlined hotel management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages