Posts

Showing posts from 2023

How to develop a RESTful webservice in java ?

Image
  How to create my first RESTful web service project in Eclipse ? 1)       To Create a web service project, open File menu à New à Dynamic Web Project 2)        2)        Type the name for your project as “MyFirstRESTful” and select dynamic web module version as 2.5 à Next à 3)        3)        Tick mark on “Generate web.xml deployment descriptor” à Finish   4)       4)     Expand your project and right click on webcontent folder à New  à   select JSP File option  à   Type the file name as  index.jsp   5)         5) Open index.jsp and type below code. index.jsp <%@ page language = "java" contentType = "text/html; charset=ISO-8859-1" pageEncoding = "ISO-8859-1" %> <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitiona...

What is JDBC ?

Introduction JDBC stands for Java Database Connectivity. It is a Java API that defines how a Java program can connect and execute queries with a database. It is a part of the Java Standard Edition platform, from Oracle Corporation. JDBC API uses JDBC drivers to communicate with different types of databases. There are four types of JDBC drivers: JDBC-ODBC Bridge Driver, JDBC Native Driver, JDBC Network Protocol Driver, and JDBC Thin Driver The most commonly used type is the Thin Driver, which is database-specific and platform-independent The Statement interface is used to create SQL basic statements in Java it provides methods to execute queries with the database. There are different types of statements. Statement Prepared Statement Callable Statement For more details please read our next session. ....

What is Hibernate in java ?

Image
Introduction to hibernate  Hibernate ORM is an object–relational mapping tool for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database. Hibernate is a Java framework used for the development of Java application to interact with the database. It is an open source, lightweight, Object Relational Mapping tool. Hibernate implements the specifications of JPA (Java Persistence API) for data persistence.  Java Hibernate is an object-relational mapping tool allowing the mapping of object-oriented models to relational databases for  web applications  by providing a framework. Mapping of entities in a Java class to tables created in a database and mapping from Java data types to  SQL data types  is one of the primary functions of Hibernate. You can also retrieve data using Hibernate. It is the alternate for developer from manually handling the database using JDBC. Hibernate is an open-source objec...

If you have any query or suggestions, Please feel free to write us

Name

Email *

Message *