SlideShare a Scribd company logo
1 of 38
Download to read offline
2017201720172017 ---- 2018201820182018
Hotel Management System 1
1.1.1.1. ProjectProjectProjectProject ProfileProfileProfileProfile
1.11.11.11.1 ProjectProjectProjectProject Definition:Definition:Definition:Definition: HotelHotelHotelHotel managementmanagementmanagementmanagement systemsystemsystemsystem
1.21.21.21.2 DescriptionDescriptionDescriptionDescription
• The Hotel Management System will provide a service to online customers, employees, and an administrator.
• Online customers can make a searches, reservations and cancel an existing reservation on the hotel reservation's web site.
• The administrator can add/update the hotel and the room information approve/disapprove a new employee account
application and generate monthly occupancy rate report when customer leave out hotel.
1.31.31.31.3 ProblemProblemProblemProblem StatementStatementStatementStatement
The hotel management is requires a computer software package to facilitate the automation of many manual tasks will be
perform by the system itself.
The hotel contains a number of hotel rooms available for hire to guests. The information relevant to each room is
• Room number
• Basic price
• Maximum Occupancy
Type of room (single, double, twin, executive, suite)
The price of room is the basic room price with any seasonal price adjustment added.
Potential guests can reserve one or more room for a specified period using this website. These reservation are handled by the
receptionist. The potential guests requests the type of the room, arrival date, duration (or departure date). A search is made
for the availability of rooms for the dates required. If successful, the customer is informed the details and the price.
The receptionist can also make a reservation for potential guests who arrive without reservation, the deposit payment must
be made at the time of initial reservation.
1.41.41.41.4 ProposedProposedProposedProposed systemsystemsystemsystem
The development of this system contains the following activities, which try to automate the entire process keeping in the
view of database integration approach.
• This system is maintain user's personal information, address, and contact details.
• Users friendliness is provided in the application with various controls provided by the system rich user interface.
• This system makes the overall project management much easier and flexible.
• Various classes have been used for maintaining the details of all the users and catalog.
• Authentication is provided this application. Only registered users can access.
• The report generation feature is provided used to generate different kind of reports.
• This system is providing accessibility control to data with respect to users.
2017201720172017 ---- 2018201820182018
Hotel Management System 2
1.51.51.51.5 ScopeScopeScopeScope
• In future the software could be further enhanced by providing our customers with the facility of booking more than one
rooms at the same time and keeping his/her customer_id the same.
• Apart from that in future our software can also be used for hotels that provide both lodging and food facilities, in such case
our software would also keep a record of food supplements and recruited staffs in our database.
• In other words our software would provide staff management as well as restaurant management.
• The inclusion of these features would definitely make our software highly demanding and would be a grand success in
practical field.
1.61.61.61.6 OutcomesOutcomesOutcomesOutcomes
���� SpeedSpeedSpeedSpeed upupupup thethethethe process.process.process.process.
Hotel system are designed to efficiently save, retrieve, send, calculate and sync data into the database thus making the
process fast. Having fast transactions makes more money,good customer experience and convenient for hotel users.
���� Real-timeReal-timeReal-timeReal-time resultsresultsresultsresults
Computer with the high specification plus a high performance hotel system would definitely give real-time results from any
transaction like saving data input, updating and deleting of data entries
���� AccurateAccurateAccurateAccurate dailydailydailydaily revenuerevenuerevenuerevenue reports.reports.reports.reports.
Dou to the real time and error free features, hotel management have access to an accurate daily revenue reports that can be
either showed or printed.
���� PreventPreventPreventPrevent doubledoubledoubledouble booking.booking.booking.booking.
In a manual operations, double booking is a common scenario but this software can avoid this occurrence due to system
trapping and checks.
���� MarketMarketMarketMarket segmentation.segmentation.segmentation.segmentation.
With hotel system, managers and owners can better track the type of visitor that usually have and from that data they can
see if their business is targeting the right market.
���� CollaborationCollaborationCollaborationCollaboration ofofofof variousvariousvariousvarious departments.departments.departments.departments.
there are many types of hotel users that belongs to a specific department of division, with a hotel system it can promote good
collaboration various departments due to real-time reporting and display status.
2017201720172017 ---- 2018201820182018
Hotel Management System 3
1.71.71.71.7 ToolsToolsToolsTools andandandand TechnologyTechnologyTechnologyTechnology withwithwithwith shortshortshortshort justificationjustificationjustificationjustification
JAVAJAVAJAVAJAVA
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically
designed to have as few implementation dependencies as possible. It is intended to let application developers "write once,
run anywhere" (WORA),meaning that compiled Java code can run on all platforms that support Java without the need for
recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless
of computer architecture. As of 2016, Java is one of the most popular programming languages in use, particularly for client-
server web applications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun
Microsystems(which has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun
Microsystems' Java platform.
The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.
Features:Features:Features:Features:
� Java is a platform independent
� Java is an Object Oriented language
� Simple
� Robust
� Secure
� Distributed
� Multithreading
� Portable
� Dynamic
� Interpreted
� High performance
Justification:Justification:Justification:Justification: java is provide very robust performance with high security aspects on J2EE platform comparison to other
programming languages.
2017201720172017 ---- 2018201820182018
Hotel Management System 4
MySQLMySQLMySQLMySQL
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed and
supported by MySQL AB, which is a Swedish company. MySQL is becoming so popular because of many good reasons −
MySQL is released under an open-source license. So you have nothing to pay to use it.
MySQL is a very powerful program in its own right. It handles a large subset of the functionality of the most expensive and
powerful database packages.
MySQL uses a standard form of the well-known SQL data language.
Justification:Justification:Justification:Justification: MySQL supports large databases, up to 50 million rows or more in a table. to a theoretical limit of 8 million
terabytes (TB) which is enough for the any system.
HIBERNATEHIBERNATEHIBERNATEHIBERNATE
Hibernate ORM (Hibernate in short) is an object-relational mapping tool for the Java programming language. It provides a
frameworkfor mapping an object-oriented domain model to a relational database. Hibernate handles object-relational
impedance mismatchproblems by replacing direct, persistent database accesses with high-level object handling functions.
Hibernate is free software that is distributed under the GNU Lesser General Public License
Hibernate's primary feature is mapping from Java classes to database tables, and mapping from Java data types to SQL data
types. Hibernate also provides data query and retrieval facilities. It generates SQL calls and relieves the developer from the
manual handling and object conversion of the result set.
Justification:Justification:Justification:Justification: Hibernate handles object-relational impedance mismatchproblems by replacing direct, persistent database
accesses with high-level object handling functions.
2017201720172017 ---- 2018201820182018
Hotel Management System 5
2.2.2.2. RequirementRequirementRequirementRequirement AnalysisAnalysisAnalysisAnalysis
2.12.12.12.1 FeasibilityFeasibilityFeasibilityFeasibility study:study:study:study:
•••• Technical:Technical:Technical:Technical:
The technical feasibility work for the project is done with the present equipment, manual procedures, proposed software
technology and available technology hardware.
If new technology is needed that what alternatives will be needed in present structure and network ethos?
This will require a close examination of the present system.
The technical feasibility should ask questions related to:-
Adequacy of available technology
1. Adequacy of hardware.
2. Adequacy of software.
3. Operating time and support facility, etc.
•••• Operational:Operational:Operational:Operational:
System will work under any condition. System will allow entering and retrieving of data only to authorize user to operate the
system through and node connected to server. It will work any full efficiency and accuracy as used to work any particular
computer.
•••• Economical:Economical:Economical:Economical:
Economic feasibility is a system. The user have economic this system is provided they require software. The hardware and
software expenses and up gradations required are almost nil.
2.22.22.22.2 UsersUsersUsersUsers ofofofof thethethethe system:system:system:system:
1. Customers (Guest)
2. Payment gateway(System)
3. Manager
4. Receptionist
2017201720172017 ---- 2018201820182018
Hotel Management System 6
2.32.32.32.3 ModulesModulesModulesModules ofofofof thethethethe System:System:System:System:
���� LoginLoginLoginLogin modulemodulemodulemodule
Desc:Desc:Desc:Desc:The user details should be verified against the details in the user tables and if it is valid user, they should be entered into
the system. Once entered, based on the user type access to the different modules to be enabled / disabled and individual
user can change their default password or old password.
���� FrontFrontFrontFront officeofficeofficeoffice modulemodulemodulemodule
Desc:Desc:Desc:Desc:Communication and Accounting are the most important function of the front office module.
Guest:Guest:Guest:Guest:
� processing the guest reservation
� handling the guest reception
� fulfill the guest inquiry usage in the hotel
such as internet facilities, safe deposit
- other departments of the hotel etc.
� maintaining the room status
���� CheckCheckCheckCheck inininin
Desc:Desc:Desc:Desc: check-in the guest
���� RoomRoomRoomRoom managementmanagementmanagementmanagement modulemodulemodulemodule
Desc:Desc:Desc:Desc:In this module new Room details can be added, modified and also status can be viewed.
���� EditEditEditEdit orororor cancelcancelcancelcancel bookingbookingbookingbooking
���� PaymentPaymentPaymentPayment gatewaygatewaygatewaygateway interfaceinterfaceinterfaceinterface
���� CheckCheckCheckCheck outoutoutout
Desc:Desc:Desc:Desc:check-out the guest
���� FeedFeedFeedFeed backbackbackback
2017201720172017 ---- 2018201820182018
Hotel Management System 7
2.42.42.42.4 HardwareHardwareHardwareHardware &&&& SoftwareSoftwareSoftwareSoftware RequirementsRequirementsRequirementsRequirements
SoftwareSoftwareSoftwareSoftware requirements:requirements:requirements:requirements:
Operating System: Windows 8.1
Web browser: Google Chrome, Embedded Browser
User interface: HTML,CSS
Client side-scripting: Java script
Programming language: Java
web applications: J2EE
IDE: Eclipse Neon 3.0
Database: MySql
ORM tool: Hibernate
Server deployment: Apache tomcat, glassfish, JBOSS
HardwareHardwareHardwareHardware requirements:requirements:requirements:requirements:
Processor: Core(TM) i3 CPU
Hard disk: 8GB Sufficient
RAM: 500MB Sufficient
2017201720172017 ---- 2018201820182018
Hotel Management System 8
2.52.52.52.5 UseUseUseUse CaseCaseCaseCase DiagramDiagramDiagramDiagram
Hotel management systemHotel management systemHotel management systemHotel management system
Guest
Search
Booking
New User
Registred Users
«extends»
«extends»
C reate
L o g in
«uses»
«uses»
«extends»
Room Manager
Additional facility
N u m.Of Guests
Auto generated bill
«uses»
«uses»
«extends»
Edit/Cancel
Supply Invoice
Reservation Detail
«uses»
«uses»
Receptionist
C heck-I n
C heck-out
«uses»
Payment
«uses»
«uses»
«uses»
-E n d1
*
-E n d2
*-E n d3
*
-E n d4
*
-E n d5
*
-E n d6
*
-E n d7
*
-E n d8
*
-E n d9
* -E n d1 0
*
-E n d1 1
*
-E n d1 2
*
PaymentPaymentPaymentPayment
GatewayGatewayGatewayGateway
InterfaceInterfaceInterfaceInterface
-E n d1 3
*
-E n d1 4
*
«uses»
«uses»
Manager
2017201720172017 ---- 2018201820182018
Hotel Management System 9
3.3.3.3. DesignDesignDesignDesign
3.13.13.13.1 OOADOOADOOADOOAD
���� ClassClassClassClass Diagram:Diagram:Diagram:Diagram:
+getRequiredResult () : RoomModel
«interface»
SearchDaoiSearchDaoiSearchDaoiSearchDaoi
+setters() : v o id
+getters() : <unspecified>
+roomId : in t
-roomNum : str in g
-roomType : str in g
-roomFacility : str in g
-roomPrice : float
-image : Object
-description : str in g
-scheme : str in g
-feedback : str in g
RoomModelRoomModelRoomModelRoomModel
+getRequiredResult() : RoomModel
#se ssio n
#t x
#roomModel : SearchDao
SearchDaoSearchDaoSearchDaoSearchDao
SearchDaoi
-roomType : str in g
-roomFacility : str in g
-roomPrice : float
-im a g e
-description : str in g
« u tility»
RoomServiceRoomServiceRoomServiceRoomService
-E n d1 1
-E n d2 *
-E n d3 1
-E n d4
*
Autogenerated ID
w ith O R M
+addRoomDetail() : bool
+deleteRoomDetail() : bool
+selectSingleRoom() : RoomModel
+listRoomDetail() : RoomModel
«interface»
roomDaoiroomDaoiroomDaoiroomDaoi
+addRoomDetail() : bool
+deleteRoomDetail() : bool
+selectSingleRoom() : RoomModel
+listRoomDetail() : RoomModel
#se ssio n
#t x
-roomModel : RoomModel
RoomDaoRoomDaoRoomDaoRoomDao
-E n d5
1
-E n d6*
-E n d71
-E n d8*
Interface1
+setters() : v o id
+getters() : <unspecified >
-guestId : str in g
-firstName : str in g
-lastName : str in g
-address : str in g
-zipcode : lo n g
-state : str in g
-phoneNum : str in g
-mailAddress : str in g
-password : str in g
-proof
-checkIn : D a te
-checkOut : D a te
GuestModelGuestModelGuestModelGuestModel
+0. . *
0. . *
-E n d1 00. . *
#firstName : str in g
#lastName : str in g
#address : str in g
#zipcode : lo n g
#state : str in g
#phoneNum : lo n g
#mailAddress : str in g
#password : str in g
#verified : str in g
#checkIn : D a te
#checkOut : D a te
« u tility»
GuestServiceGuestServiceGuestServiceGuestService
+addUniqueUser() : bool
+updateUserDetail() : bool
+deleteUniqueResult () : bool
+selectUserDetail () : GuestModel
+prevention() : v o id
+payable( )
«interface»
GuestDaoiGuestDaoiGuestDaoiGuestDaoi
-E n d9 1
-E n d1 1
*
+payable() : v o id
+calcCost() : v o id
+updateStatus() : bool
+addCost() : bool
+getGuest() : GuestModel
+se t_S tar_EndtDate() : v o id
+setStatus() : bool
+getDuration() : <unspecified>
+getStatus() : <unspecified >
+getCost( )
+getAdditionalCost() : d o u b le
+roomNum : str in g
#registerDate : D a te
#dispatcherDate : D a te
#cost : d o u b le
#additionalCost : d o u b le
#complationStatus : bool
Payab lePayab lePayab lePayab le
Interface3
+addUniqueUser() : bool
+updateUniqueUser () : bool
+deleteUniqueUser() : bool
+selectUserDetail () : GuestModel
+prevention() : v o id
#se ssio n
#t x
+room : RoomModel
#guest : GuestModel
+result : bool
GuestDaoGuestDaoGuestDaoGuestDao
-E n d1 2
1
-E n d1 3
*
-E n d1 4
1
-E n d1 5
*
#identity : str in g
-m ail : str in g
#password : str in g
AuthenticationServiceAuthenticationServiceAuthenticationServiceAuthenticationService
+validation() : <unspecified>
+securityProvider() : <unspecified>
AuthenticationFilterAuthenticationFilterAuthenticationFilterAuthenticationFilter
*
-E n d1 6
*
-E n d1 7
+resourceAccess () : v o id
+userAuthentication () : v o id
+adminAuthentication () : v o id
AuthenticationDaoAuthenticationDaoAuthenticationDaoAuthenticationDao
+userAuthentication () : v o id
+adminAuthentication () : v o id
«interface»
AuthDaoiAuthDaoiAuthDaoiAuthDaoi
Interface4
-E n d1 8
1
-E n d1 9 *
+getters() : <unspecified>
+setters() : v o id
+secureAccess() : v o id
-identity : str in g
-m ail : str in g
-password : str in g
AuthModelAuthModelAuthModelAuthModel
-E n d2 0
1. . *
-E n d2 1
0. . *
+getters() : <unspecified>
+setters() : v o id
-billN o : lo n g
-billingDays : in t
-totalRent : float
-serviceCharge : float
-seviceTex : float
-discount : float
-netBill : float
-billingMode : char
-creditCardNum : str in g
-ammountReceived : float
-status
PayableModelPayableModelPayableModelPayableModel
+calcCost() : v o id
+addCost() : bool
+updateStatus() : bool
+getGusest() : GuestModel
+se t_sta r_endD ate() : v o id
+getStatus() : <unspecified>
+getDuration() : <unspecified>
+getCost() : <unspecified>
+setCost() : <unspecified>
«interface»
PayableDaoiPayableDaoiPayableDaoiPayableDaoi
2017201720172017 ---- 2018201820182018
Hotel Management System 10
���� SequenceSequenceSequenceSequence Diagram:Diagram:Diagram:Diagram:
Receptionist Guest RoomManager B ill PaymentGateway
Search Room
Required Result
Book R oom
return messege
C heck-I n
return messege
Generate Bill
Return Bill Detail
PayBill
C heck-O ut
L o g in
Add Deposite
Status
Return Summery
Take Feedback
return feedback
Record Complain
2017201720172017 ---- 2018201820182018
Hotel Management System 11
���� ActivityActivityActivityActivity Diagram:Diagram:Diagram:Diagram:
GuestGuestGuestGuest
ch e ck-i n
L o g in
Detail Search
[]
C heck-detail Check Out Edit-booking
P a y-b ill
Return summary
Changes
Feedback
Logout
2017201720172017 ---- 2018201820182018
Hotel Management System 12
ReceptionistReceptionistReceptionistReceptionist
SearchDetail
L o g in
C heckIn-Detail C heck-out Detail C heck-Currunt GuestDetail
ConformDetail
ProvideSummary
ShowChanges
ModifyDetail
AddBill
TakeFeedback
Logout
2017201720172017 ---- 2018201820182018
Hotel Management System 13
RoomRoomRoomRoom ManagerManagerManagerManager
SearchD etail
L o g in
R oom D etail Im plem ent R oom GuestBill
C onform D etail GenerateBill
Supply/In vo ice
Logout
Edit requirm ent
2017201720172017 ---- 2018201820182018
Hotel Management System 14
3.33.33.33.3 EntityEntityEntityEntity RelationshipRelationshipRelationshipRelationship DiagramDiagramDiagramDiagram
Guest
RoomManager
Authentication
1. .M
M. .1
1
.
.
M
1. .M
Gu estIdGu estIdGu estIdGu estId
R o o mIdR o o mIdR o o mIdR o o mId
A u th IdA u th IdA u th IdA u th Id
N am e mailAddress
Password
Proof
F nam e Lnam e
Address
PostCode
S ta te
RoomType
F a cility
P r ice
Im age
In fo
Feedback
M ail/UniqueCode Password
M
.
.
*
Account
b illN ob illN ob illN ob illN o
billingDays room Id
GurestIdtotalRent
servCharge
servT ex
discount
netBill
billM ode
creditCard
amReceived
2017201720172017 ---- 2018201820182018
Hotel Management System 15
3.43.43.43.4 DataDataDataData DictionaryDictionaryDictionaryDictionary
RoomManagerRoomManagerRoomManagerRoomManager TableTableTableTable
Table 1 Room Manager
FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s)
roomId Auto generated Int 15 Yes Yes Pk
roomNum Room number Varchar 30 Yes No fk
roomType Room type Varchar 15 Yes No
roomFacility Room Facility Varchar 10 Yes No
roomPrice Room Price Float 30 Yes No
Image Room images Blob 65535
bytes(Max)
Yes No
description Room
description
Varchar 70 Yes no
scheme Room scheme Varchar 40 Yes No
GuestManagerGuestManagerGuestManagerGuestManager TableTableTableTable
Table 2 Guest Manager
FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s)
guestId Auto generated int 25 Yes Yes PK
roomId Room table Int 15 Yes No FK
firstName First name Varchar 20 Yes No
lastName Last name Varchar 20 Yes No
Address Address Varchar 40 Yes No
Zipcode Zip/post code longint 7 Yes No
State State of guest Varchar 15 Yes No
phoneNum Phone number Varchar 15 Yes No
Mail Mail address Varchar 25 Yes No
Password Password Varchar 30 Yes No
Proof Identity Blob 65535
bytes(Max)
Yes No
checkIn Check-in guest
date
Date dd/mm/yy Yes No
checkout Check-out guest
date
Date dd/mm/yy Yes No
2017201720172017 ---- 2018201820182018
Hotel Management System 16
AccountManagerAccountManagerAccountManagerAccountManager TableTableTableTable
Table 3 Account Manager
FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s)
BillNo Bill number int 25 Yes Yes Pk
billingDays Count days Int 5 Yes No
roomId Room table int 15 Yes No fk
guestId Guest table Int 25 Yes No fk
totalRent Total rent Float 30 Yes No
servCharge Service charge Float 30 Yes No
serviceTex Service Tex(GST) Float 30 Yes No
Discount Discount Float 30 Yes No
netBill Net bill Float 30 Yes No
billMode E.g., On cash Float 30 Yes No
creditCard Credit card no. Varchar 20 Yes No
amReceived Received
amount
Float 30 Yes No
AuthenticationManagerAuthenticationManagerAuthenticationManagerAuthenticationManager TableTableTableTable
Table 4 Authentication Manager
FieldFieldFieldField DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired uniqueuniqueuniqueunique Key(s)Key(s)Key(s)Key(s)
Id Auto generated Int 15 Yes Yes Yes
IdKey Identity of Guest,
and manager table
Int 15 Yes No fk
Mail Registred mail
address of guest
Varchar 25 Yes No fk
password Password Varchar 30 Yes No fk
2017201720172017 ---- 2018201820182018
Hotel Management System 17
4.4.4.4. ImplementationImplementationImplementationImplementation
4.14.14.14.1 CodingCodingCodingCoding ConventionsConventionsConventionsConventions
Coding conventions make programs more understandable by making them easier to read. They can also give information
about the function of the identifier-for example, whether it's a constant, package, or class-which can be helpful in
understanding the code. This project is developed using MVC pattern, where JSP page acts as view layer, Hibernate and
mySQL database as the model and servlet as controller layer.
IdentifierIdentifierIdentifierIdentifier TypeTypeTypeType RulesRulesRulesRules forforforfor CodingCodingCodingCoding ExamplesExamplesExamplesExamples
Packages The prefix of a unique package name is always written in all-lowercase ASCII letters and
should be one of the top-level domain names, currently com, edu, gov, mil, net, org, or one
of the English two-letter codes identifying countries as specified in ISO Standard 3166, 1981.
The packages in this project is follow the Hibernate MVC framework such as model package,
controller package, DAO(Data Access Object) package, and DAOI interface package are play
deferent role on specific manner. also the connection file has diffrent package which name is
basically util package. Here viewer as model and handler as controller packages.
com.room.viewer
com.room.handler
com.room.dao
com.room.daoi
com.room.util
Classes Class names should be nouns, in mixed case with the first letter of each internal word
capitalized. CamelCase is naming convention in which name is formed of multiple words
that are joined together as single word of sequence without violating the naming limitation.
Class GuestDAO
class GuestModel
class GuestHandler
class PoolConnection
Interfaces Interface names should be capitalized like class names. Interface GuestDAOI
interface SearchDAOI
Methods Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of
each internal word capitalized.
billDetail();
getDuration();
showRoomDetail();
Variables Except for variables, all instance, class, and class constants are in mixed case with a
lowercase first letter. Internal words start with capital letters. Variable names should not
start with underscore _ or dollar sign $ characters, even though both are allowed.
int roomId;
String roomNum;
float roomPrice;
Constants The names of variables declared class constants and of ANSI constants should be all
uppercase with words separated by underscores ("_"). (ANSI constants should be avoided,
for ease of debugging.)
private static byte[]
ENAILID=null;
private static byte[]
PASSWORD=null;
2017201720172017 ---- 2018201820182018
Hotel Management System 18
4.24.24.24.2 ScreenScreenScreenScreen ShotsShotsShotsShots
1.1.1.1. HomeHomeHomeHome PagePagePagePage
Figure 1 Home Page
It’s a home page of our system it has menu bar, DropDownList as Price Between with price and all of Room Category with
names.
2017201720172017 ---- 2018201820182018
Hotel Management System 19
2.2.2.2. AvailableAvailableAvailableAvailable RoomRoomRoomRoom DetailDetailDetailDetail PagePagePagePage
Figure 2 Available Room Detail Page
it's check available rooms and shows the details of unregistered rooms with the specific range of selected price between and
category of room.
3.3.3.3. LoginLoginLoginLogin pagepagepagepage
Figure 3 Login Page
Login page require login type such as Guest Login, Room Manager Login, and Receptionist Login. Email Address and Password
for login into system.
2017201720172017 ---- 2018201820182018
Hotel Management System 20
4.4.4.4. RegistrationRegistrationRegistrationRegistration pagepagepagepage
Figure 4 Registration Page
Registration page contains set of fields that requires to be filled for registration but before that we need to select any one
available room and click on Book Room button.
2017201720172017 ---- 2018201820182018
Hotel Management System 21
5.5.5.5. GuestGuestGuestGuest DetailDetailDetailDetail PagePagePagePage
Figure 5 Guest Detail Page
It gives all information about logged Guest.
2017201720172017 ---- 2018201820182018
Hotel Management System 22
6.6.6.6. GuestGuestGuestGuest BookedBookedBookedBooked RoomRoomRoomRoom DetailDetailDetailDetail
Figure 6 Guest Booked Room Page
It gives information about logged guest room detail.
2017201720172017 ---- 2018201820182018
Hotel Management System 23
7.7.7.7. Check-OutCheck-OutCheck-OutCheck-Out PagePagePagePage
Figure 7 check out Page
Guest can click on PAY NOW button and pay the bill. Here bill is system generated. Guest has also privilege to choose their
payment gateway.
2017201720172017 ---- 2018201820182018
Hotel Management System 24
8.8.8.8. RoomRoomRoomRoom ManagerManagerManagerManager homehomehomehome PagePagePagePage
Figure 8 Room Manager Home Page
Room Manager can search the room through specific Id of room and add a new room detail.
2017201720172017 ---- 2018201820182018
Hotel Management System 25
9.9.9.9. AllAllAllAll RoomsRoomsRoomsRooms DetailDetailDetailDetail PagePagePagePage
Figure 9 All Rooms Details Page
This page gives list of all rooms that is added by room manager into system.
10.10.10.10. BookedBookedBookedBooked RoomsRoomsRoomsRooms DetailDetailDetailDetail PagePagePagePage
Figure 10 Booked Rooms Detail Page
This page gives list of only registered rooms which is registered by guest into system.
2017201720172017 ---- 2018201820182018
Hotel Management System 26
11.11.11.11. EditEditEditEdit RoomRoomRoomRoom DetailDetailDetailDetail pagepagepagepage
Figure 11 Edit Room Detail Page
Room Manager can edit/update previously added room here.
12.12.12.12. ReceptionistReceptionistReceptionistReceptionist PrivilegePrivilegePrivilegePrivilege pagepagepagepage
Figure 12 Receptionist Privilege Page
Receptionist can approve or disapprove the check-out request of guest. Room managers are also able to provide
show/update/delete privilege if they want.
2017201720172017 ---- 2018201820182018
Hotel Management System 27
13.13.13.13. About-usAbout-usAbout-usAbout-us pagepagepagepage
Figure 13 About-us Page
About-us page gives relative information about owners of this system.
14.14.14.14. ContactContactContactContact UsUsUsUs
Figure 14 Contact us
Any visitor can write their query at here and we can give them reply on their personal/entered mail address.
2017201720172017 ---- 2018201820182018
Hotel Management System 28
4.34.34.34.3 BusinessBusinessBusinessBusiness Logic-SystemLogic-SystemLogic-SystemLogic-System CodeCodeCodeCode
We are created a real time MVC application by using Servlet, JSP, and Hibernate. This application is developed using MVC
pattern, where JSP pages acts as view layer, Hibernate and mySql database as the model and servlet as controller layer.
HibernateHibernateHibernateHibernate QueryQueryQueryQuery Language(HQL)Language(HQL)Language(HQL)Language(HQL)
Hibernate framework comes with powerful object-orientated query language - HQL same as SQL but instead of table it deals
with the classes and instead of columns it deals with the properties or class attributes. It's database independent queries
because HQL queries internally converted into database specific SQL queries using Dialect class mentioned in hibernate-
cfg.xml file.
1.1.1.1. BusinessBusinessBusinessBusiness LogicLogicLogicLogic totototo serviceserviceserviceservice layerlayerlayerlayer
roomModel.setRoomId(roomId);
roomModel.setRoomNum(roomNum);
roomModel.setRoomPrice(roomPrice);
roomModel.setRoomType(roomType);
roomModel.setRoomFacility(roomFacility);
roomModel.setRoomDescription(roomDescription);
roomModel.setScheme(scheme);
intintintint messegemessegemessegemessege=roomDaoi.addRoomDetail(roomModel);
trytrytrytry{
ifififif(messege ==1 || messege != 0){
System.outoutoutout.println("inserted successfully");
request.setAttribute("name",roomModel.getRoomNum());
RequestDispatcher requestDispatcherrequestDispatcherrequestDispatcherrequestDispatcher=
request.getRequestDispatcher("AddRoom.jsp");
requestDispatcher.forward(request, response);
}
}catchcatchcatchcatch(Exception eeee){
e.getMessage();
}finallyfinallyfinallyfinally{
messege= 0;
roomDaoi=nullnullnullnull;
roomModel=nullnullnullnull;
}
}
2017201720172017 ---- 2018201820182018
Hotel Management System 29
trytrytrytry{
ifififif(request.getParameter("searchId")!= nullnullnullnull || request.getParameter("btn").equals("search")){
IntIntIntInt searchIdsearchIdsearchIdsearchId =Integer.parseInt(request.getParameter("searchId"));
RoomModel roomModelroomModelroomModelroomModel = newnewnewnew RoomModel();
RoomDaoi roomDaoiroomDaoiroomDaoiroomDaoi = newnewnewnew RoomDao();
roomModel.setRoomId(searchId);
intintintint xxxx=roomModel.getRoomId();
System.outoutoutout.println(x);
RoomModel singleRecordsingleRecordsingleRecordsingleRecord= roomDaoi.showSingleRoom(x);
ifififif(singleRecord != nullnullnullnull){
System.outoutoutout.println("fetched successfully.."+singleRecord.getRoomNum());
request.setAttribute("user", singleRecord);
RequestDispatcher requestDispatcher2requestDispatcher2requestDispatcher2requestDispatcher2= request.getRequestDispatcher("AddRoom.jsp");
requestDispatcher2.forward(request, response);
web.xmlweb.xmlweb.xmlweb.xml
<servlet>
<servlet-name>GuestHandler</servlet-name>
<servlet-class>com.room.handler.GuestHandler</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GuestHandler</servlet-name>
<url-pattern>/Guest</url-pattern>
</servlet-mapping>
<servlet>
2017201720172017 ---- 2018201820182018
Hotel Management System 30
2.2.2.2. BusinessBusinessBusinessBusiness LogicLogicLogicLogic totototo DataDataDataData PersistencePersistencePersistencePersistence logiclogiclogiclogic layerlayerlayerlayer@Override
publicpublicpublicpublic List<RoomModel> getDetailgetDetailgetDetailgetDetail(SearchModel searchModel) {
trytrytrytry{
session= PoolConnection.getConnection();
tx= session.beginTransaction();
List<RoomModel> listRoomslistRoomslistRoomslistRooms;
List<RoomModel> roomExePriceroomExePriceroomExePriceroomExePrice;
String qryStrqryStrqryStrqryStr="from RoomModel where roomType like :keyword and roomPrice >= :inPrice and roomPrice <= :endPrice and
guest_id=null";
//String qryStr2="from RoomModel where roomPrice >= :inPrice and roomPrice <= :endPrice";
String qryStr3qryStr3qryStr3qryStr3="from RoomModel where roomPrice >= :inPrice";
/*fetch the room detail base on Keyword keyword
here keyword is for ex., single, double etc..*/
String keywordkeywordkeywordkeyword= searchModel.getRoom();
/*it's give return price whatever we want to show*/
Float inPriceinPriceinPriceinPrice= searchModel.getInPrice();
Float endPriceendPriceendPriceendPrice= searchModel.getEndPrice();
//here if condition is determine which type of request need to check
ifififif(searchModel.getRoom().equals("executive")){
Query qry3qry3qry3qry3= session.createQuery(qryStr3);
qry3.setCacheable(truetruetruetrue);
qry3.setParameter("inPrice", inPrice);
roomExePrice= qry3.list();
returnreturnreturnreturn roomExePrice;
}
elseelseelseelse{
Query qryqryqryqry= session.createQuery(qryStr);
qry.setCacheable(truetruetruetrue);
qry.setParameter("keyword", "%" + keyword + "%");
qry.setParameter("inPrice", inPrice);
qry.setParameter("endPrice", endPrice);
listRooms= qry.list();
}
tx.commit();
returnreturnreturnreturn listRooms;
2017201720172017 ---- 2018201820182018
Hotel Management System 31
}
catchcatchcatchcatch(Exception eeee){
e.getMessage();
tx.rollback();
}finallyfinallyfinallyfinally{
session.close();
}
returnreturnreturnreturn nullnullnullnull;
}
}
2017201720172017 ---- 2018201820182018
Hotel Management System 32
3.3.3.3. InteractionInteractionInteractionInteraction logiclogiclogiclogic totototo presentationpresentationpresentationpresentation layerlayerlayerlayer
<% ifififif(request.getSession().getAttribute("Manager") == nullnullnullnull){
response.sendRedirect("searchIndex.jsp");}
%>
<%ifififif(request.getAttribute("registeredRooms") == nullnullnullnull){
roomContainer= (List<RoomModel>) request.getAttribute("roomDetails");
%>
<h4><b>
<font color="brown">
<table border="1" align="center" >
<tr>
<th>RoomNumber</th>
<th>RoomType</th>
<th>RoomFacility</th>
<th>RoomPrice</th>
<th>RoomDescription</th>
<th>RoomScheme</th>
<th colspan="2"> Operations</th>
</tr>
<% forforforfor(RoomModel set: roomContainer){%>
<tr>
<td><%=set.getRoomNum() %></td>
<td><%=set.getRoomType() %></td>
<td><%=set.getRoomFacility() %></td>
<td><%=set.getRoomPrice() %></td>
<td><%=set.getRoomDescription() %></td>
<td><%=set.getScheme() %></td>
<% String roomNum= set.getRoomNum(); %>
<td><font color="blue"><a href="http://localhost:8080/RoomManager/add?action=edit&detailId=<%=roomNum
%>">Update</a></font></td>
<td><font color="blue"><a
href="http://localhost:8080/RoomManager/add?action=delete&detailId=<%=roomNum%>">Delete</a></font></td>
</tr>
<%}}%>
</table>
2017201720172017 ---- 2018201820182018
Hotel Management System 33
5.5.5.5. TestingTestingTestingTesting
���� TestTestTestTest CasesCasesCasesCases
TestTestTestTest CaseCaseCaseCase forforforfor LoginLoginLoginLogin
Table 5 Test Case for Login
Figure 15 Test for Login page
TCTCTCTC NoNoNoNo
TestTestTestTest CaseCaseCaseCase
SummarySummarySummarySummary ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus
TC01 Email ID
Check Email
Format
Email ID=”
vijayp.vp78@gmail.com” Success Allow Pass
TC02 Email ID
Wrong Email
Format Email ID=”user1.com”
Please Add ‘@ ‘in
Email Address
Something went wrong
please try again Fail
TC03 Email ID Empty Email ID=""
Please fill out this
field
Something went wrong
please try again Fail
TC04 Password Empty password="" field must required
Something went wrong
please try again Pass
TC05 Password Right Password Password=”awbwfargbl” Success Allow Pass
2017201720172017 ---- 2018201820182018
Hotel Management System 34
TestTestTestTest CaseCaseCaseCase forforforfor Registration:Registration:Registration:Registration:
Table 6 Test Case for Registration
TCTCTCTC NoNoNoNo TestTestTestTest CaseCaseCaseCase
SummarySummarySummarySummary
ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus
TC01 User name Check Text First name="Vijay" Success Allow Pass
TC02 User name Empty First name="" Please fill out this
field
Not Allow Pass
TC03 Last name Check Text Last name=" parmar" Success Allow Pass
TC04 Last name Empty Last name=" " Please fill out this
field
Not Allow Pass
TC05 User Phone no. Check number Must be
numeric
User Phone no= 90331289Ab Please match
requested format
Not Allow To
Register
Pass
TC06 User Phone no Check number Must be
numeric
User Phone no= 9033128981 Success Allow To
Register
Pass
TC07 User Phone no Empty User Phone no=”” Please fill out this
field
Not Allow To
Register
Pass
TC08 User Address Check Whether User can
entered value or not
User Address="amreli" User can easily select
a City
Allow Pass
TC09 User Address Check Items Comes with
space and number
Ascending order
bounded values Success As Expected Pass
TC10 User Address Check empty Value User Address="" Please fill out this
field
Not Allow To
Register
Pass
TC11 Email Check Valid Format Email=”
vijayp.vp78@gmail.com”
Success Allow Pass
TC12 Email Check Valid Format Email=”vijju.com” Please Add ‘@ ‘in
Email Address
Not Allow To
Register
Pass
TC13 Email Empty Email="" please fill out this
field
Not Allow To
Register
Pass
2017201720172017 ---- 2018201820182018
Hotel Management System 35
TC14 Arrival Date Empty Arrival Date Please choose arrival
date
Not Allow To
Register
Pass
TC15 Arrival Date Select date 11/28/2017 success Allowed Pass
TC16 Departure Date Select date 11/30/2017 success Allowed Pass
TC17 Number of Adults Enter alphabets value Five Please enter only
numeric values
Not allow to
Register
Pass
TC18 Number of Adults Enter numeric value 5 success Allowed Pass
TC19 Number of childs Enter numeric values 2 success Allowed Pass
TC20 Enter Question if
any
Enter anything Nope success Allowed Pass
Figure 16 Test for Registration
2017201720172017 ---- 2018201820182018
Hotel Management System 36
TestTestTestTest CaseCaseCaseCase forforforfor RoomRoomRoomRoom Register:Register:Register:Register:
Table 7 Test Case for Room Register
TCTCTCTC NoNoNoNo TestTestTestTest CaseCaseCaseCase SummarySummarySummarySummary ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus
TC01 Room Id Check Text Enter room ID="784" Success Allow Pass
TC02 Room Id Empty Room Id ="" Please fill out this field Not Allow Pass
TC03 Room number Check Text Room number=" 89" Success Allow Pass
TC04 Room number Empty Room number =" " Please fill out this field Not Allow Pass
TC05 Room type Check text Room type=”xyz” Please match requested
format
Not Allow To Register Pass
TC06 Room type Check text Room type=”executive” Success Allow To Register Pass
TC07 AC/Non-AC Check unselect Empty Please fill out this field Not Allow To Register Pass
TC08 AC/Non-AC Check select AC User can easily select Allow Pass
TC09 Room price Check text Numeric and decimal
values
Success As Expected Pass
TC10 Room price Check empty
Value
Room price="" Please fill out this field Not Allow To Register Fail
TC11 Room Description Check text Enter any value Please fill out this field Allow Pass
TC12 Room scheme Check text Enter any value Please fill out Allow Pass
2017201720172017 ---- 2018201820182018
Hotel Management System 37
Figure 17 Test for Room Register
2017201720172017 ---- 2018201820182018
Hotel Management System 38
6.6.6.6. BibliographyBibliographyBibliographyBibliography
���� BooksBooksBooksBooks
o "JAVA PERSISTENCE with HIBERNATE " written by Christian Bauer.Gavin Kin.
o “Java Server Programming Java EE7(J2EE 1.7) Black Book” Author by DT Editorial and published by DreamTech.
o E Balagurusamy "Programming with Java A Primer Fourth Edition".
���� VideoVideoVideoVideo
TeluskoTeluskoTeluskoTelusko learninglearninglearninglearning
o https://www.youtube.com/watch?v=PMR0ld5h938&list=PLsyeobzWxl7qBZtsEvp_n2A7sJs2MpF3r
JavaJavaJavaJava BrainBrainBrainBrain
o https://www.youtube.com/watch?v=Yv2xctJxE-w&list=PL4AFF701184976B25
���� WebWebWebWeb LinksLinksLinksLinks
Hibernate. Everything data. - Hibernate
o hibernate.org/
Hibernate Tutorial - Mkyong
o www.mkyong.com/tutorials/hibernate-tutorials/
Stack Overflow(technical query support)
o https://stackoverflow.com/

More Related Content

What's hot

PPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENTPPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENTJaya0006
 
Hotel Management System Final Report
Hotel Management System Final ReportHotel Management System Final Report
Hotel Management System Final ReportCharitha Gamage
 
Online Hotel Management System
Online Hotel Management SystemOnline Hotel Management System
Online Hotel Management SystemAbdullah Almasud
 
Hotel management system
Hotel management systemHotel management system
Hotel management systemVipul Kumar
 
Hotel management-system-hms
Hotel management-system-hmsHotel management-system-hms
Hotel management-system-hmsMiran Hussen
 
Hotel Management System SRS
Hotel Management System SRS Hotel Management System SRS
Hotel Management System SRS Paras
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management SystemSalman Dayal
 
Hotel management system
Hotel management systemHotel management system
Hotel management systemRIDDHICHOUHAN2
 
Hotel Management System
Hotel Management System Hotel Management System
Hotel Management System Kusum Sankhala
 
Hotel reservation system
Hotel reservation systemHotel reservation system
Hotel reservation systemManoj Malshan
 
online room booking system
online room booking systemonline room booking system
online room booking systemmanuchinna
 
Hotel management or reservation system document
Hotel management or reservation system document Hotel management or reservation system document
Hotel management or reservation system document prabhat kumar
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsisRahulraj Nirala
 
Hotel management system presentation
Hotel management system presentationHotel management system presentation
Hotel management system presentationjoilrahat
 
Tourism and travelling management System
Tourism and travelling management SystemTourism and travelling management System
Tourism and travelling management SystemMoeenuddin Patel
 
Online Hotel Reservation System PPT
Online Hotel Reservation System PPTOnline Hotel Reservation System PPT
Online Hotel Reservation System PPTsurabhi shinde
 
Project Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemProject Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemCharitha Gamage
 

What's hot (20)

PPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENTPPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENT
 
Hotel manaement
Hotel manaementHotel manaement
Hotel manaement
 
Hotel Management System Final Report
Hotel Management System Final ReportHotel Management System Final Report
Hotel Management System Final Report
 
Online Hotel Management System
Online Hotel Management SystemOnline Hotel Management System
Online Hotel Management System
 
Hotel management system
Hotel management systemHotel management system
Hotel management system
 
Hotel management-system-hms
Hotel management-system-hmsHotel management-system-hms
Hotel management-system-hms
 
Hotel Management System SRS
Hotel Management System SRS Hotel Management System SRS
Hotel Management System SRS
 
Hotel management report
Hotel management reportHotel management report
Hotel management report
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management System
 
Hms project report
Hms project reportHms project report
Hms project report
 
Hotel management system
Hotel management systemHotel management system
Hotel management system
 
Hotel Management System
Hotel Management System Hotel Management System
Hotel Management System
 
Hotel reservation system
Hotel reservation systemHotel reservation system
Hotel reservation system
 
online room booking system
online room booking systemonline room booking system
online room booking system
 
Hotel management or reservation system document
Hotel management or reservation system document Hotel management or reservation system document
Hotel management or reservation system document
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsis
 
Hotel management system presentation
Hotel management system presentationHotel management system presentation
Hotel management system presentation
 
Tourism and travelling management System
Tourism and travelling management SystemTourism and travelling management System
Tourism and travelling management System
 
Online Hotel Reservation System PPT
Online Hotel Reservation System PPTOnline Hotel Reservation System PPT
Online Hotel Reservation System PPT
 
Project Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemProject Proposal document for Hotel Management System
Project Proposal document for Hotel Management System
 

Similar to Hotel Management with Hibernate MVC Minor Project

hotel management dbms.docx
 hotel management dbms.docx hotel management dbms.docx
hotel management dbms.docxKaranamManideep1
 
Renuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi
 
Renuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi
 
Raj bharat mcts certified 5 + yrs exp dotnet professonal
Raj bharat mcts certified 5 + yrs exp dotnet professonalRaj bharat mcts certified 5 + yrs exp dotnet professonal
Raj bharat mcts certified 5 + yrs exp dotnet professonalRaj Bharat
 
lijo_resume_singapore
lijo_resume_singaporelijo_resume_singapore
lijo_resume_singaporeLijo George
 
Delia_J_Micu_resume_arch_Jan_2015
Delia_J_Micu_resume_arch_Jan_2015Delia_J_Micu_resume_arch_Jan_2015
Delia_J_Micu_resume_arch_Jan_2015Delia J. Micu
 
5.10 years Expetience in Asp.net with MVC
5.10 years Expetience in Asp.net with MVC5.10 years Expetience in Asp.net with MVC
5.10 years Expetience in Asp.net with MVCprashant zope
 
Malli Resume_30 Jun 2012
Malli Resume_30 Jun 2012Malli Resume_30 Jun 2012
Malli Resume_30 Jun 2012mallikarjun ch
 
Naveen Kumar Bokku
Naveen Kumar BokkuNaveen Kumar Bokku
Naveen Kumar BokkuNaveen Bokku
 
JimSundinCurrent
JimSundinCurrentJimSundinCurrent
JimSundinCurrentJim Sundin
 

Similar to Hotel Management with Hibernate MVC Minor Project (20)

hotel management dbms.docx
 hotel management dbms.docx hotel management dbms.docx
hotel management dbms.docx
 
Sample dotnet project
Sample dotnet projectSample dotnet project
Sample dotnet project
 
YasirNew
YasirNewYasirNew
YasirNew
 
Pushpendra
PushpendraPushpendra
Pushpendra
 
Amarjit Resume
Amarjit ResumeAmarjit Resume
Amarjit Resume
 
Renuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr Exp
 
Renuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr ExpRenuka Devi with 4+ yr Exp
Renuka Devi with 4+ yr Exp
 
Raj bharat mcts certified 5 + yrs exp dotnet professonal
Raj bharat mcts certified 5 + yrs exp dotnet professonalRaj bharat mcts certified 5 + yrs exp dotnet professonal
Raj bharat mcts certified 5 + yrs exp dotnet professonal
 
lijo_resume_singapore
lijo_resume_singaporelijo_resume_singapore
lijo_resume_singapore
 
Delia_J_Micu_resume_arch_Jan_2015
Delia_J_Micu_resume_arch_Jan_2015Delia_J_Micu_resume_arch_Jan_2015
Delia_J_Micu_resume_arch_Jan_2015
 
resume1
resume1resume1
resume1
 
Resume_Rupesh Lanjewar
Resume_Rupesh LanjewarResume_Rupesh Lanjewar
Resume_Rupesh Lanjewar
 
Vivek
VivekVivek
Vivek
 
5.10 years Expetience in Asp.net with MVC
5.10 years Expetience in Asp.net with MVC5.10 years Expetience in Asp.net with MVC
5.10 years Expetience in Asp.net with MVC
 
Rakesh's Resume
Rakesh's ResumeRakesh's Resume
Rakesh's Resume
 
Malli Resume_30 Jun 2012
Malli Resume_30 Jun 2012Malli Resume_30 Jun 2012
Malli Resume_30 Jun 2012
 
ravi kumar s
ravi kumar sravi kumar s
ravi kumar s
 
Naveen Kumar Bokku
Naveen Kumar BokkuNaveen Kumar Bokku
Naveen Kumar Bokku
 
JimSundinCurrent
JimSundinCurrentJimSundinCurrent
JimSundinCurrent
 
shiv_chandra_pathak
shiv_chandra_pathakshiv_chandra_pathak
shiv_chandra_pathak
 

Recently uploaded

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Hotel Management with Hibernate MVC Minor Project

  • 1. 2017201720172017 ---- 2018201820182018 Hotel Management System 1 1.1.1.1. ProjectProjectProjectProject ProfileProfileProfileProfile 1.11.11.11.1 ProjectProjectProjectProject Definition:Definition:Definition:Definition: HotelHotelHotelHotel managementmanagementmanagementmanagement systemsystemsystemsystem 1.21.21.21.2 DescriptionDescriptionDescriptionDescription • The Hotel Management System will provide a service to online customers, employees, and an administrator. • Online customers can make a searches, reservations and cancel an existing reservation on the hotel reservation's web site. • The administrator can add/update the hotel and the room information approve/disapprove a new employee account application and generate monthly occupancy rate report when customer leave out hotel. 1.31.31.31.3 ProblemProblemProblemProblem StatementStatementStatementStatement The hotel management is requires a computer software package to facilitate the automation of many manual tasks will be perform by the system itself. The hotel contains a number of hotel rooms available for hire to guests. The information relevant to each room is • Room number • Basic price • Maximum Occupancy Type of room (single, double, twin, executive, suite) The price of room is the basic room price with any seasonal price adjustment added. Potential guests can reserve one or more room for a specified period using this website. These reservation are handled by the receptionist. The potential guests requests the type of the room, arrival date, duration (or departure date). A search is made for the availability of rooms for the dates required. If successful, the customer is informed the details and the price. The receptionist can also make a reservation for potential guests who arrive without reservation, the deposit payment must be made at the time of initial reservation. 1.41.41.41.4 ProposedProposedProposedProposed systemsystemsystemsystem The development of this system contains the following activities, which try to automate the entire process keeping in the view of database integration approach. • This system is maintain user's personal information, address, and contact details. • Users friendliness is provided in the application with various controls provided by the system rich user interface. • This system makes the overall project management much easier and flexible. • Various classes have been used for maintaining the details of all the users and catalog. • Authentication is provided this application. Only registered users can access. • The report generation feature is provided used to generate different kind of reports. • This system is providing accessibility control to data with respect to users.
  • 2. 2017201720172017 ---- 2018201820182018 Hotel Management System 2 1.51.51.51.5 ScopeScopeScopeScope • In future the software could be further enhanced by providing our customers with the facility of booking more than one rooms at the same time and keeping his/her customer_id the same. • Apart from that in future our software can also be used for hotels that provide both lodging and food facilities, in such case our software would also keep a record of food supplements and recruited staffs in our database. • In other words our software would provide staff management as well as restaurant management. • The inclusion of these features would definitely make our software highly demanding and would be a grand success in practical field. 1.61.61.61.6 OutcomesOutcomesOutcomesOutcomes ���� SpeedSpeedSpeedSpeed upupupup thethethethe process.process.process.process. Hotel system are designed to efficiently save, retrieve, send, calculate and sync data into the database thus making the process fast. Having fast transactions makes more money,good customer experience and convenient for hotel users. ���� Real-timeReal-timeReal-timeReal-time resultsresultsresultsresults Computer with the high specification plus a high performance hotel system would definitely give real-time results from any transaction like saving data input, updating and deleting of data entries ���� AccurateAccurateAccurateAccurate dailydailydailydaily revenuerevenuerevenuerevenue reports.reports.reports.reports. Dou to the real time and error free features, hotel management have access to an accurate daily revenue reports that can be either showed or printed. ���� PreventPreventPreventPrevent doubledoubledoubledouble booking.booking.booking.booking. In a manual operations, double booking is a common scenario but this software can avoid this occurrence due to system trapping and checks. ���� MarketMarketMarketMarket segmentation.segmentation.segmentation.segmentation. With hotel system, managers and owners can better track the type of visitor that usually have and from that data they can see if their business is targeting the right market. ���� CollaborationCollaborationCollaborationCollaboration ofofofof variousvariousvariousvarious departments.departments.departments.departments. there are many types of hotel users that belongs to a specific department of division, with a hotel system it can promote good collaboration various departments due to real-time reporting and display status.
  • 3. 2017201720172017 ---- 2018201820182018 Hotel Management System 3 1.71.71.71.7 ToolsToolsToolsTools andandandand TechnologyTechnologyTechnologyTechnology withwithwithwith shortshortshortshort justificationjustificationjustificationjustification JAVAJAVAJAVAJAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA),meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. As of 2016, Java is one of the most popular programming languages in use, particularly for client- server web applications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems(which has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them. Features:Features:Features:Features: � Java is a platform independent � Java is an Object Oriented language � Simple � Robust � Secure � Distributed � Multithreading � Portable � Dynamic � Interpreted � High performance Justification:Justification:Justification:Justification: java is provide very robust performance with high security aspects on J2EE platform comparison to other programming languages.
  • 4. 2017201720172017 ---- 2018201820182018 Hotel Management System 4 MySQLMySQLMySQLMySQL MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is becoming so popular because of many good reasons − MySQL is released under an open-source license. So you have nothing to pay to use it. MySQL is a very powerful program in its own right. It handles a large subset of the functionality of the most expensive and powerful database packages. MySQL uses a standard form of the well-known SQL data language. Justification:Justification:Justification:Justification: MySQL supports large databases, up to 50 million rows or more in a table. to a theoretical limit of 8 million terabytes (TB) which is enough for the any system. HIBERNATEHIBERNATEHIBERNATEHIBERNATE Hibernate ORM (Hibernate in short) is an object-relational mapping tool for the Java programming language. It provides a frameworkfor mapping an object-oriented domain model to a relational database. Hibernate handles object-relational impedance mismatchproblems by replacing direct, persistent database accesses with high-level object handling functions. Hibernate is free software that is distributed under the GNU Lesser General Public License Hibernate's primary feature is mapping from Java classes to database tables, and mapping from Java data types to SQL data types. Hibernate also provides data query and retrieval facilities. It generates SQL calls and relieves the developer from the manual handling and object conversion of the result set. Justification:Justification:Justification:Justification: Hibernate handles object-relational impedance mismatchproblems by replacing direct, persistent database accesses with high-level object handling functions.
  • 5. 2017201720172017 ---- 2018201820182018 Hotel Management System 5 2.2.2.2. RequirementRequirementRequirementRequirement AnalysisAnalysisAnalysisAnalysis 2.12.12.12.1 FeasibilityFeasibilityFeasibilityFeasibility study:study:study:study: •••• Technical:Technical:Technical:Technical: The technical feasibility work for the project is done with the present equipment, manual procedures, proposed software technology and available technology hardware. If new technology is needed that what alternatives will be needed in present structure and network ethos? This will require a close examination of the present system. The technical feasibility should ask questions related to:- Adequacy of available technology 1. Adequacy of hardware. 2. Adequacy of software. 3. Operating time and support facility, etc. •••• Operational:Operational:Operational:Operational: System will work under any condition. System will allow entering and retrieving of data only to authorize user to operate the system through and node connected to server. It will work any full efficiency and accuracy as used to work any particular computer. •••• Economical:Economical:Economical:Economical: Economic feasibility is a system. The user have economic this system is provided they require software. The hardware and software expenses and up gradations required are almost nil. 2.22.22.22.2 UsersUsersUsersUsers ofofofof thethethethe system:system:system:system: 1. Customers (Guest) 2. Payment gateway(System) 3. Manager 4. Receptionist
  • 6. 2017201720172017 ---- 2018201820182018 Hotel Management System 6 2.32.32.32.3 ModulesModulesModulesModules ofofofof thethethethe System:System:System:System: ���� LoginLoginLoginLogin modulemodulemodulemodule Desc:Desc:Desc:Desc:The user details should be verified against the details in the user tables and if it is valid user, they should be entered into the system. Once entered, based on the user type access to the different modules to be enabled / disabled and individual user can change their default password or old password. ���� FrontFrontFrontFront officeofficeofficeoffice modulemodulemodulemodule Desc:Desc:Desc:Desc:Communication and Accounting are the most important function of the front office module. Guest:Guest:Guest:Guest: � processing the guest reservation � handling the guest reception � fulfill the guest inquiry usage in the hotel such as internet facilities, safe deposit - other departments of the hotel etc. � maintaining the room status ���� CheckCheckCheckCheck inininin Desc:Desc:Desc:Desc: check-in the guest ���� RoomRoomRoomRoom managementmanagementmanagementmanagement modulemodulemodulemodule Desc:Desc:Desc:Desc:In this module new Room details can be added, modified and also status can be viewed. ���� EditEditEditEdit orororor cancelcancelcancelcancel bookingbookingbookingbooking ���� PaymentPaymentPaymentPayment gatewaygatewaygatewaygateway interfaceinterfaceinterfaceinterface ���� CheckCheckCheckCheck outoutoutout Desc:Desc:Desc:Desc:check-out the guest ���� FeedFeedFeedFeed backbackbackback
  • 7. 2017201720172017 ---- 2018201820182018 Hotel Management System 7 2.42.42.42.4 HardwareHardwareHardwareHardware &&&& SoftwareSoftwareSoftwareSoftware RequirementsRequirementsRequirementsRequirements SoftwareSoftwareSoftwareSoftware requirements:requirements:requirements:requirements: Operating System: Windows 8.1 Web browser: Google Chrome, Embedded Browser User interface: HTML,CSS Client side-scripting: Java script Programming language: Java web applications: J2EE IDE: Eclipse Neon 3.0 Database: MySql ORM tool: Hibernate Server deployment: Apache tomcat, glassfish, JBOSS HardwareHardwareHardwareHardware requirements:requirements:requirements:requirements: Processor: Core(TM) i3 CPU Hard disk: 8GB Sufficient RAM: 500MB Sufficient
  • 8. 2017201720172017 ---- 2018201820182018 Hotel Management System 8 2.52.52.52.5 UseUseUseUse CaseCaseCaseCase DiagramDiagramDiagramDiagram Hotel management systemHotel management systemHotel management systemHotel management system Guest Search Booking New User Registred Users «extends» «extends» C reate L o g in «uses» «uses» «extends» Room Manager Additional facility N u m.Of Guests Auto generated bill «uses» «uses» «extends» Edit/Cancel Supply Invoice Reservation Detail «uses» «uses» Receptionist C heck-I n C heck-out «uses» Payment «uses» «uses» «uses» -E n d1 * -E n d2 *-E n d3 * -E n d4 * -E n d5 * -E n d6 * -E n d7 * -E n d8 * -E n d9 * -E n d1 0 * -E n d1 1 * -E n d1 2 * PaymentPaymentPaymentPayment GatewayGatewayGatewayGateway InterfaceInterfaceInterfaceInterface -E n d1 3 * -E n d1 4 * «uses» «uses» Manager
  • 9. 2017201720172017 ---- 2018201820182018 Hotel Management System 9 3.3.3.3. DesignDesignDesignDesign 3.13.13.13.1 OOADOOADOOADOOAD ���� ClassClassClassClass Diagram:Diagram:Diagram:Diagram: +getRequiredResult () : RoomModel «interface» SearchDaoiSearchDaoiSearchDaoiSearchDaoi +setters() : v o id +getters() : <unspecified> +roomId : in t -roomNum : str in g -roomType : str in g -roomFacility : str in g -roomPrice : float -image : Object -description : str in g -scheme : str in g -feedback : str in g RoomModelRoomModelRoomModelRoomModel +getRequiredResult() : RoomModel #se ssio n #t x #roomModel : SearchDao SearchDaoSearchDaoSearchDaoSearchDao SearchDaoi -roomType : str in g -roomFacility : str in g -roomPrice : float -im a g e -description : str in g « u tility» RoomServiceRoomServiceRoomServiceRoomService -E n d1 1 -E n d2 * -E n d3 1 -E n d4 * Autogenerated ID w ith O R M +addRoomDetail() : bool +deleteRoomDetail() : bool +selectSingleRoom() : RoomModel +listRoomDetail() : RoomModel «interface» roomDaoiroomDaoiroomDaoiroomDaoi +addRoomDetail() : bool +deleteRoomDetail() : bool +selectSingleRoom() : RoomModel +listRoomDetail() : RoomModel #se ssio n #t x -roomModel : RoomModel RoomDaoRoomDaoRoomDaoRoomDao -E n d5 1 -E n d6* -E n d71 -E n d8* Interface1 +setters() : v o id +getters() : <unspecified > -guestId : str in g -firstName : str in g -lastName : str in g -address : str in g -zipcode : lo n g -state : str in g -phoneNum : str in g -mailAddress : str in g -password : str in g -proof -checkIn : D a te -checkOut : D a te GuestModelGuestModelGuestModelGuestModel +0. . * 0. . * -E n d1 00. . * #firstName : str in g #lastName : str in g #address : str in g #zipcode : lo n g #state : str in g #phoneNum : lo n g #mailAddress : str in g #password : str in g #verified : str in g #checkIn : D a te #checkOut : D a te « u tility» GuestServiceGuestServiceGuestServiceGuestService +addUniqueUser() : bool +updateUserDetail() : bool +deleteUniqueResult () : bool +selectUserDetail () : GuestModel +prevention() : v o id +payable( ) «interface» GuestDaoiGuestDaoiGuestDaoiGuestDaoi -E n d9 1 -E n d1 1 * +payable() : v o id +calcCost() : v o id +updateStatus() : bool +addCost() : bool +getGuest() : GuestModel +se t_S tar_EndtDate() : v o id +setStatus() : bool +getDuration() : <unspecified> +getStatus() : <unspecified > +getCost( ) +getAdditionalCost() : d o u b le +roomNum : str in g #registerDate : D a te #dispatcherDate : D a te #cost : d o u b le #additionalCost : d o u b le #complationStatus : bool Payab lePayab lePayab lePayab le Interface3 +addUniqueUser() : bool +updateUniqueUser () : bool +deleteUniqueUser() : bool +selectUserDetail () : GuestModel +prevention() : v o id #se ssio n #t x +room : RoomModel #guest : GuestModel +result : bool GuestDaoGuestDaoGuestDaoGuestDao -E n d1 2 1 -E n d1 3 * -E n d1 4 1 -E n d1 5 * #identity : str in g -m ail : str in g #password : str in g AuthenticationServiceAuthenticationServiceAuthenticationServiceAuthenticationService +validation() : <unspecified> +securityProvider() : <unspecified> AuthenticationFilterAuthenticationFilterAuthenticationFilterAuthenticationFilter * -E n d1 6 * -E n d1 7 +resourceAccess () : v o id +userAuthentication () : v o id +adminAuthentication () : v o id AuthenticationDaoAuthenticationDaoAuthenticationDaoAuthenticationDao +userAuthentication () : v o id +adminAuthentication () : v o id «interface» AuthDaoiAuthDaoiAuthDaoiAuthDaoi Interface4 -E n d1 8 1 -E n d1 9 * +getters() : <unspecified> +setters() : v o id +secureAccess() : v o id -identity : str in g -m ail : str in g -password : str in g AuthModelAuthModelAuthModelAuthModel -E n d2 0 1. . * -E n d2 1 0. . * +getters() : <unspecified> +setters() : v o id -billN o : lo n g -billingDays : in t -totalRent : float -serviceCharge : float -seviceTex : float -discount : float -netBill : float -billingMode : char -creditCardNum : str in g -ammountReceived : float -status PayableModelPayableModelPayableModelPayableModel +calcCost() : v o id +addCost() : bool +updateStatus() : bool +getGusest() : GuestModel +se t_sta r_endD ate() : v o id +getStatus() : <unspecified> +getDuration() : <unspecified> +getCost() : <unspecified> +setCost() : <unspecified> «interface» PayableDaoiPayableDaoiPayableDaoiPayableDaoi
  • 10. 2017201720172017 ---- 2018201820182018 Hotel Management System 10 ���� SequenceSequenceSequenceSequence Diagram:Diagram:Diagram:Diagram: Receptionist Guest RoomManager B ill PaymentGateway Search Room Required Result Book R oom return messege C heck-I n return messege Generate Bill Return Bill Detail PayBill C heck-O ut L o g in Add Deposite Status Return Summery Take Feedback return feedback Record Complain
  • 11. 2017201720172017 ---- 2018201820182018 Hotel Management System 11 ���� ActivityActivityActivityActivity Diagram:Diagram:Diagram:Diagram: GuestGuestGuestGuest ch e ck-i n L o g in Detail Search [] C heck-detail Check Out Edit-booking P a y-b ill Return summary Changes Feedback Logout
  • 12. 2017201720172017 ---- 2018201820182018 Hotel Management System 12 ReceptionistReceptionistReceptionistReceptionist SearchDetail L o g in C heckIn-Detail C heck-out Detail C heck-Currunt GuestDetail ConformDetail ProvideSummary ShowChanges ModifyDetail AddBill TakeFeedback Logout
  • 13. 2017201720172017 ---- 2018201820182018 Hotel Management System 13 RoomRoomRoomRoom ManagerManagerManagerManager SearchD etail L o g in R oom D etail Im plem ent R oom GuestBill C onform D etail GenerateBill Supply/In vo ice Logout Edit requirm ent
  • 14. 2017201720172017 ---- 2018201820182018 Hotel Management System 14 3.33.33.33.3 EntityEntityEntityEntity RelationshipRelationshipRelationshipRelationship DiagramDiagramDiagramDiagram Guest RoomManager Authentication 1. .M M. .1 1 . . M 1. .M Gu estIdGu estIdGu estIdGu estId R o o mIdR o o mIdR o o mIdR o o mId A u th IdA u th IdA u th IdA u th Id N am e mailAddress Password Proof F nam e Lnam e Address PostCode S ta te RoomType F a cility P r ice Im age In fo Feedback M ail/UniqueCode Password M . . * Account b illN ob illN ob illN ob illN o billingDays room Id GurestIdtotalRent servCharge servT ex discount netBill billM ode creditCard amReceived
  • 15. 2017201720172017 ---- 2018201820182018 Hotel Management System 15 3.43.43.43.4 DataDataDataData DictionaryDictionaryDictionaryDictionary RoomManagerRoomManagerRoomManagerRoomManager TableTableTableTable Table 1 Room Manager FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s) roomId Auto generated Int 15 Yes Yes Pk roomNum Room number Varchar 30 Yes No fk roomType Room type Varchar 15 Yes No roomFacility Room Facility Varchar 10 Yes No roomPrice Room Price Float 30 Yes No Image Room images Blob 65535 bytes(Max) Yes No description Room description Varchar 70 Yes no scheme Room scheme Varchar 40 Yes No GuestManagerGuestManagerGuestManagerGuestManager TableTableTableTable Table 2 Guest Manager FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s) guestId Auto generated int 25 Yes Yes PK roomId Room table Int 15 Yes No FK firstName First name Varchar 20 Yes No lastName Last name Varchar 20 Yes No Address Address Varchar 40 Yes No Zipcode Zip/post code longint 7 Yes No State State of guest Varchar 15 Yes No phoneNum Phone number Varchar 15 Yes No Mail Mail address Varchar 25 Yes No Password Password Varchar 30 Yes No Proof Identity Blob 65535 bytes(Max) Yes No checkIn Check-in guest date Date dd/mm/yy Yes No checkout Check-out guest date Date dd/mm/yy Yes No
  • 16. 2017201720172017 ---- 2018201820182018 Hotel Management System 16 AccountManagerAccountManagerAccountManagerAccountManager TableTableTableTable Table 3 Account Manager FieldFieldFieldField NameNameNameName DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired UniqueUniqueUniqueUnique Key(s)Key(s)Key(s)Key(s) BillNo Bill number int 25 Yes Yes Pk billingDays Count days Int 5 Yes No roomId Room table int 15 Yes No fk guestId Guest table Int 25 Yes No fk totalRent Total rent Float 30 Yes No servCharge Service charge Float 30 Yes No serviceTex Service Tex(GST) Float 30 Yes No Discount Discount Float 30 Yes No netBill Net bill Float 30 Yes No billMode E.g., On cash Float 30 Yes No creditCard Credit card no. Varchar 20 Yes No amReceived Received amount Float 30 Yes No AuthenticationManagerAuthenticationManagerAuthenticationManagerAuthenticationManager TableTableTableTable Table 4 Authentication Manager FieldFieldFieldField DescriptionDescriptionDescriptionDescription TypeTypeTypeType SpecificationSpecificationSpecificationSpecification RequiredRequiredRequiredRequired uniqueuniqueuniqueunique Key(s)Key(s)Key(s)Key(s) Id Auto generated Int 15 Yes Yes Yes IdKey Identity of Guest, and manager table Int 15 Yes No fk Mail Registred mail address of guest Varchar 25 Yes No fk password Password Varchar 30 Yes No fk
  • 17. 2017201720172017 ---- 2018201820182018 Hotel Management System 17 4.4.4.4. ImplementationImplementationImplementationImplementation 4.14.14.14.1 CodingCodingCodingCoding ConventionsConventionsConventionsConventions Coding conventions make programs more understandable by making them easier to read. They can also give information about the function of the identifier-for example, whether it's a constant, package, or class-which can be helpful in understanding the code. This project is developed using MVC pattern, where JSP page acts as view layer, Hibernate and mySQL database as the model and servlet as controller layer. IdentifierIdentifierIdentifierIdentifier TypeTypeTypeType RulesRulesRulesRules forforforfor CodingCodingCodingCoding ExamplesExamplesExamplesExamples Packages The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, currently com, edu, gov, mil, net, org, or one of the English two-letter codes identifying countries as specified in ISO Standard 3166, 1981. The packages in this project is follow the Hibernate MVC framework such as model package, controller package, DAO(Data Access Object) package, and DAOI interface package are play deferent role on specific manner. also the connection file has diffrent package which name is basically util package. Here viewer as model and handler as controller packages. com.room.viewer com.room.handler com.room.dao com.room.daoi com.room.util Classes Class names should be nouns, in mixed case with the first letter of each internal word capitalized. CamelCase is naming convention in which name is formed of multiple words that are joined together as single word of sequence without violating the naming limitation. Class GuestDAO class GuestModel class GuestHandler class PoolConnection Interfaces Interface names should be capitalized like class names. Interface GuestDAOI interface SearchDAOI Methods Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized. billDetail(); getDuration(); showRoomDetail(); Variables Except for variables, all instance, class, and class constants are in mixed case with a lowercase first letter. Internal words start with capital letters. Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed. int roomId; String roomNum; float roomPrice; Constants The names of variables declared class constants and of ANSI constants should be all uppercase with words separated by underscores ("_"). (ANSI constants should be avoided, for ease of debugging.) private static byte[] ENAILID=null; private static byte[] PASSWORD=null;
  • 18. 2017201720172017 ---- 2018201820182018 Hotel Management System 18 4.24.24.24.2 ScreenScreenScreenScreen ShotsShotsShotsShots 1.1.1.1. HomeHomeHomeHome PagePagePagePage Figure 1 Home Page It’s a home page of our system it has menu bar, DropDownList as Price Between with price and all of Room Category with names.
  • 19. 2017201720172017 ---- 2018201820182018 Hotel Management System 19 2.2.2.2. AvailableAvailableAvailableAvailable RoomRoomRoomRoom DetailDetailDetailDetail PagePagePagePage Figure 2 Available Room Detail Page it's check available rooms and shows the details of unregistered rooms with the specific range of selected price between and category of room. 3.3.3.3. LoginLoginLoginLogin pagepagepagepage Figure 3 Login Page Login page require login type such as Guest Login, Room Manager Login, and Receptionist Login. Email Address and Password for login into system.
  • 20. 2017201720172017 ---- 2018201820182018 Hotel Management System 20 4.4.4.4. RegistrationRegistrationRegistrationRegistration pagepagepagepage Figure 4 Registration Page Registration page contains set of fields that requires to be filled for registration but before that we need to select any one available room and click on Book Room button.
  • 21. 2017201720172017 ---- 2018201820182018 Hotel Management System 21 5.5.5.5. GuestGuestGuestGuest DetailDetailDetailDetail PagePagePagePage Figure 5 Guest Detail Page It gives all information about logged Guest.
  • 22. 2017201720172017 ---- 2018201820182018 Hotel Management System 22 6.6.6.6. GuestGuestGuestGuest BookedBookedBookedBooked RoomRoomRoomRoom DetailDetailDetailDetail Figure 6 Guest Booked Room Page It gives information about logged guest room detail.
  • 23. 2017201720172017 ---- 2018201820182018 Hotel Management System 23 7.7.7.7. Check-OutCheck-OutCheck-OutCheck-Out PagePagePagePage Figure 7 check out Page Guest can click on PAY NOW button and pay the bill. Here bill is system generated. Guest has also privilege to choose their payment gateway.
  • 24. 2017201720172017 ---- 2018201820182018 Hotel Management System 24 8.8.8.8. RoomRoomRoomRoom ManagerManagerManagerManager homehomehomehome PagePagePagePage Figure 8 Room Manager Home Page Room Manager can search the room through specific Id of room and add a new room detail.
  • 25. 2017201720172017 ---- 2018201820182018 Hotel Management System 25 9.9.9.9. AllAllAllAll RoomsRoomsRoomsRooms DetailDetailDetailDetail PagePagePagePage Figure 9 All Rooms Details Page This page gives list of all rooms that is added by room manager into system. 10.10.10.10. BookedBookedBookedBooked RoomsRoomsRoomsRooms DetailDetailDetailDetail PagePagePagePage Figure 10 Booked Rooms Detail Page This page gives list of only registered rooms which is registered by guest into system.
  • 26. 2017201720172017 ---- 2018201820182018 Hotel Management System 26 11.11.11.11. EditEditEditEdit RoomRoomRoomRoom DetailDetailDetailDetail pagepagepagepage Figure 11 Edit Room Detail Page Room Manager can edit/update previously added room here. 12.12.12.12. ReceptionistReceptionistReceptionistReceptionist PrivilegePrivilegePrivilegePrivilege pagepagepagepage Figure 12 Receptionist Privilege Page Receptionist can approve or disapprove the check-out request of guest. Room managers are also able to provide show/update/delete privilege if they want.
  • 27. 2017201720172017 ---- 2018201820182018 Hotel Management System 27 13.13.13.13. About-usAbout-usAbout-usAbout-us pagepagepagepage Figure 13 About-us Page About-us page gives relative information about owners of this system. 14.14.14.14. ContactContactContactContact UsUsUsUs Figure 14 Contact us Any visitor can write their query at here and we can give them reply on their personal/entered mail address.
  • 28. 2017201720172017 ---- 2018201820182018 Hotel Management System 28 4.34.34.34.3 BusinessBusinessBusinessBusiness Logic-SystemLogic-SystemLogic-SystemLogic-System CodeCodeCodeCode We are created a real time MVC application by using Servlet, JSP, and Hibernate. This application is developed using MVC pattern, where JSP pages acts as view layer, Hibernate and mySql database as the model and servlet as controller layer. HibernateHibernateHibernateHibernate QueryQueryQueryQuery Language(HQL)Language(HQL)Language(HQL)Language(HQL) Hibernate framework comes with powerful object-orientated query language - HQL same as SQL but instead of table it deals with the classes and instead of columns it deals with the properties or class attributes. It's database independent queries because HQL queries internally converted into database specific SQL queries using Dialect class mentioned in hibernate- cfg.xml file. 1.1.1.1. BusinessBusinessBusinessBusiness LogicLogicLogicLogic totototo serviceserviceserviceservice layerlayerlayerlayer roomModel.setRoomId(roomId); roomModel.setRoomNum(roomNum); roomModel.setRoomPrice(roomPrice); roomModel.setRoomType(roomType); roomModel.setRoomFacility(roomFacility); roomModel.setRoomDescription(roomDescription); roomModel.setScheme(scheme); intintintint messegemessegemessegemessege=roomDaoi.addRoomDetail(roomModel); trytrytrytry{ ifififif(messege ==1 || messege != 0){ System.outoutoutout.println("inserted successfully"); request.setAttribute("name",roomModel.getRoomNum()); RequestDispatcher requestDispatcherrequestDispatcherrequestDispatcherrequestDispatcher= request.getRequestDispatcher("AddRoom.jsp"); requestDispatcher.forward(request, response); } }catchcatchcatchcatch(Exception eeee){ e.getMessage(); }finallyfinallyfinallyfinally{ messege= 0; roomDaoi=nullnullnullnull; roomModel=nullnullnullnull; } }
  • 29. 2017201720172017 ---- 2018201820182018 Hotel Management System 29 trytrytrytry{ ifififif(request.getParameter("searchId")!= nullnullnullnull || request.getParameter("btn").equals("search")){ IntIntIntInt searchIdsearchIdsearchIdsearchId =Integer.parseInt(request.getParameter("searchId")); RoomModel roomModelroomModelroomModelroomModel = newnewnewnew RoomModel(); RoomDaoi roomDaoiroomDaoiroomDaoiroomDaoi = newnewnewnew RoomDao(); roomModel.setRoomId(searchId); intintintint xxxx=roomModel.getRoomId(); System.outoutoutout.println(x); RoomModel singleRecordsingleRecordsingleRecordsingleRecord= roomDaoi.showSingleRoom(x); ifififif(singleRecord != nullnullnullnull){ System.outoutoutout.println("fetched successfully.."+singleRecord.getRoomNum()); request.setAttribute("user", singleRecord); RequestDispatcher requestDispatcher2requestDispatcher2requestDispatcher2requestDispatcher2= request.getRequestDispatcher("AddRoom.jsp"); requestDispatcher2.forward(request, response); web.xmlweb.xmlweb.xmlweb.xml <servlet> <servlet-name>GuestHandler</servlet-name> <servlet-class>com.room.handler.GuestHandler</servlet-class> </servlet> <servlet-mapping> <servlet-name>GuestHandler</servlet-name> <url-pattern>/Guest</url-pattern> </servlet-mapping> <servlet>
  • 30. 2017201720172017 ---- 2018201820182018 Hotel Management System 30 2.2.2.2. BusinessBusinessBusinessBusiness LogicLogicLogicLogic totototo DataDataDataData PersistencePersistencePersistencePersistence logiclogiclogiclogic layerlayerlayerlayer@Override publicpublicpublicpublic List<RoomModel> getDetailgetDetailgetDetailgetDetail(SearchModel searchModel) { trytrytrytry{ session= PoolConnection.getConnection(); tx= session.beginTransaction(); List<RoomModel> listRoomslistRoomslistRoomslistRooms; List<RoomModel> roomExePriceroomExePriceroomExePriceroomExePrice; String qryStrqryStrqryStrqryStr="from RoomModel where roomType like :keyword and roomPrice >= :inPrice and roomPrice <= :endPrice and guest_id=null"; //String qryStr2="from RoomModel where roomPrice >= :inPrice and roomPrice <= :endPrice"; String qryStr3qryStr3qryStr3qryStr3="from RoomModel where roomPrice >= :inPrice"; /*fetch the room detail base on Keyword keyword here keyword is for ex., single, double etc..*/ String keywordkeywordkeywordkeyword= searchModel.getRoom(); /*it's give return price whatever we want to show*/ Float inPriceinPriceinPriceinPrice= searchModel.getInPrice(); Float endPriceendPriceendPriceendPrice= searchModel.getEndPrice(); //here if condition is determine which type of request need to check ifififif(searchModel.getRoom().equals("executive")){ Query qry3qry3qry3qry3= session.createQuery(qryStr3); qry3.setCacheable(truetruetruetrue); qry3.setParameter("inPrice", inPrice); roomExePrice= qry3.list(); returnreturnreturnreturn roomExePrice; } elseelseelseelse{ Query qryqryqryqry= session.createQuery(qryStr); qry.setCacheable(truetruetruetrue); qry.setParameter("keyword", "%" + keyword + "%"); qry.setParameter("inPrice", inPrice); qry.setParameter("endPrice", endPrice); listRooms= qry.list(); } tx.commit(); returnreturnreturnreturn listRooms;
  • 31. 2017201720172017 ---- 2018201820182018 Hotel Management System 31 } catchcatchcatchcatch(Exception eeee){ e.getMessage(); tx.rollback(); }finallyfinallyfinallyfinally{ session.close(); } returnreturnreturnreturn nullnullnullnull; } }
  • 32. 2017201720172017 ---- 2018201820182018 Hotel Management System 32 3.3.3.3. InteractionInteractionInteractionInteraction logiclogiclogiclogic totototo presentationpresentationpresentationpresentation layerlayerlayerlayer <% ifififif(request.getSession().getAttribute("Manager") == nullnullnullnull){ response.sendRedirect("searchIndex.jsp");} %> <%ifififif(request.getAttribute("registeredRooms") == nullnullnullnull){ roomContainer= (List<RoomModel>) request.getAttribute("roomDetails"); %> <h4><b> <font color="brown"> <table border="1" align="center" > <tr> <th>RoomNumber</th> <th>RoomType</th> <th>RoomFacility</th> <th>RoomPrice</th> <th>RoomDescription</th> <th>RoomScheme</th> <th colspan="2"> Operations</th> </tr> <% forforforfor(RoomModel set: roomContainer){%> <tr> <td><%=set.getRoomNum() %></td> <td><%=set.getRoomType() %></td> <td><%=set.getRoomFacility() %></td> <td><%=set.getRoomPrice() %></td> <td><%=set.getRoomDescription() %></td> <td><%=set.getScheme() %></td> <% String roomNum= set.getRoomNum(); %> <td><font color="blue"><a href="http://localhost:8080/RoomManager/add?action=edit&detailId=<%=roomNum %>">Update</a></font></td> <td><font color="blue"><a href="http://localhost:8080/RoomManager/add?action=delete&detailId=<%=roomNum%>">Delete</a></font></td> </tr> <%}}%> </table>
  • 33. 2017201720172017 ---- 2018201820182018 Hotel Management System 33 5.5.5.5. TestingTestingTestingTesting ���� TestTestTestTest CasesCasesCasesCases TestTestTestTest CaseCaseCaseCase forforforfor LoginLoginLoginLogin Table 5 Test Case for Login Figure 15 Test for Login page TCTCTCTC NoNoNoNo TestTestTestTest CaseCaseCaseCase SummarySummarySummarySummary ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus TC01 Email ID Check Email Format Email ID=” vijayp.vp78@gmail.com” Success Allow Pass TC02 Email ID Wrong Email Format Email ID=”user1.com” Please Add ‘@ ‘in Email Address Something went wrong please try again Fail TC03 Email ID Empty Email ID="" Please fill out this field Something went wrong please try again Fail TC04 Password Empty password="" field must required Something went wrong please try again Pass TC05 Password Right Password Password=”awbwfargbl” Success Allow Pass
  • 34. 2017201720172017 ---- 2018201820182018 Hotel Management System 34 TestTestTestTest CaseCaseCaseCase forforforfor Registration:Registration:Registration:Registration: Table 6 Test Case for Registration TCTCTCTC NoNoNoNo TestTestTestTest CaseCaseCaseCase SummarySummarySummarySummary ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus TC01 User name Check Text First name="Vijay" Success Allow Pass TC02 User name Empty First name="" Please fill out this field Not Allow Pass TC03 Last name Check Text Last name=" parmar" Success Allow Pass TC04 Last name Empty Last name=" " Please fill out this field Not Allow Pass TC05 User Phone no. Check number Must be numeric User Phone no= 90331289Ab Please match requested format Not Allow To Register Pass TC06 User Phone no Check number Must be numeric User Phone no= 9033128981 Success Allow To Register Pass TC07 User Phone no Empty User Phone no=”” Please fill out this field Not Allow To Register Pass TC08 User Address Check Whether User can entered value or not User Address="amreli" User can easily select a City Allow Pass TC09 User Address Check Items Comes with space and number Ascending order bounded values Success As Expected Pass TC10 User Address Check empty Value User Address="" Please fill out this field Not Allow To Register Pass TC11 Email Check Valid Format Email=” vijayp.vp78@gmail.com” Success Allow Pass TC12 Email Check Valid Format Email=”vijju.com” Please Add ‘@ ‘in Email Address Not Allow To Register Pass TC13 Email Empty Email="" please fill out this field Not Allow To Register Pass
  • 35. 2017201720172017 ---- 2018201820182018 Hotel Management System 35 TC14 Arrival Date Empty Arrival Date Please choose arrival date Not Allow To Register Pass TC15 Arrival Date Select date 11/28/2017 success Allowed Pass TC16 Departure Date Select date 11/30/2017 success Allowed Pass TC17 Number of Adults Enter alphabets value Five Please enter only numeric values Not allow to Register Pass TC18 Number of Adults Enter numeric value 5 success Allowed Pass TC19 Number of childs Enter numeric values 2 success Allowed Pass TC20 Enter Question if any Enter anything Nope success Allowed Pass Figure 16 Test for Registration
  • 36. 2017201720172017 ---- 2018201820182018 Hotel Management System 36 TestTestTestTest CaseCaseCaseCase forforforfor RoomRoomRoomRoom Register:Register:Register:Register: Table 7 Test Case for Room Register TCTCTCTC NoNoNoNo TestTestTestTest CaseCaseCaseCase SummarySummarySummarySummary ConditionConditionConditionCondition TestTestTestTest datadatadatadata ExceptedExceptedExceptedExcepted OutputOutputOutputOutput ActualActualActualActual ResultResultResultResult StatusStatusStatusStatus TC01 Room Id Check Text Enter room ID="784" Success Allow Pass TC02 Room Id Empty Room Id ="" Please fill out this field Not Allow Pass TC03 Room number Check Text Room number=" 89" Success Allow Pass TC04 Room number Empty Room number =" " Please fill out this field Not Allow Pass TC05 Room type Check text Room type=”xyz” Please match requested format Not Allow To Register Pass TC06 Room type Check text Room type=”executive” Success Allow To Register Pass TC07 AC/Non-AC Check unselect Empty Please fill out this field Not Allow To Register Pass TC08 AC/Non-AC Check select AC User can easily select Allow Pass TC09 Room price Check text Numeric and decimal values Success As Expected Pass TC10 Room price Check empty Value Room price="" Please fill out this field Not Allow To Register Fail TC11 Room Description Check text Enter any value Please fill out this field Allow Pass TC12 Room scheme Check text Enter any value Please fill out Allow Pass
  • 37. 2017201720172017 ---- 2018201820182018 Hotel Management System 37 Figure 17 Test for Room Register
  • 38. 2017201720172017 ---- 2018201820182018 Hotel Management System 38 6.6.6.6. BibliographyBibliographyBibliographyBibliography ���� BooksBooksBooksBooks o "JAVA PERSISTENCE with HIBERNATE " written by Christian Bauer.Gavin Kin. o “Java Server Programming Java EE7(J2EE 1.7) Black Book” Author by DT Editorial and published by DreamTech. o E Balagurusamy "Programming with Java A Primer Fourth Edition". ���� VideoVideoVideoVideo TeluskoTeluskoTeluskoTelusko learninglearninglearninglearning o https://www.youtube.com/watch?v=PMR0ld5h938&list=PLsyeobzWxl7qBZtsEvp_n2A7sJs2MpF3r JavaJavaJavaJava BrainBrainBrainBrain o https://www.youtube.com/watch?v=Yv2xctJxE-w&list=PL4AFF701184976B25 ���� WebWebWebWeb LinksLinksLinksLinks Hibernate. Everything data. - Hibernate o hibernate.org/ Hibernate Tutorial - Mkyong o www.mkyong.com/tutorials/hibernate-tutorials/ Stack Overflow(technical query support) o https://stackoverflow.com/