Java Servlets Java Servlet is the serverside Java programming language. We can say it as serverside applet. How applet is used for writing the client side code, servlet is used for writing the serverside programming language. Servlet programming is first created by Sun Microsystems in June 1997. The latest version is Servlet2.5 which is released …
Call Java Oracle Functions From Java program
Call Java Oracle Functions From Java program Beginning with version 8i, the Oracle database includes a fully functional Java Virtual Machine, Oracle JVM. Out of this close relationship between Oracle and Java emerges an important technology for Oracle developers: Java stored procedures. With Java stored procedures, developers have the ability to harness the power of …
JPA and NetBeans
In this article we will see how to use Java Persistence API (JPA) in NetBeans 6.1 with in a Java application. The JPA was first introduced as part of the Java EE 5 platform. This article will not provide any of the theoretical information about JPA. Software used NetBeans IDE 6.1 JDK version 5.0/6.0 MySql …
NULL and NOT NULL comparison in the Hibernate API
null and not null check While checking for the null and not null values in the Hibernate API, we have to be careful and there is chance for misunderstanding. This tips explains how to compare the null values in the Hibernate query. also read: Introduction to Hibernate Hibernate Interview Questions Interceptors in Hibernate Hibernate Books …
How to use named parameters and named query in Hibernate?
Named Parameters in Hibernate Query There is two types of query parameters binding in the Hibernate Query. One is positioned parameter and another one is named parameter. But, hibernate recommend to use the named parameters since it is more flexible and powerful compare to the positioned parameter. Here we will look into the named parameter …
Three ways to create query in Hibernate
Create Query in Hibernate To create query in the Hibernate ORM framework, there is three different types. The following are the three ways to create query instance: session.createQuery() session.createSQLQuery() session.createCriteria() We will look into the details of each category in detail. also read: Introduction to Hibernate Hibernate Interview Questions Interceptors in Hibernate Hibernate Books session.createQuery() …
How to use Initialization callback methods while creating Spring bean?
Initialization callback methods Springframework provides flexibility to initialize its Beans using the user defined methods. There is some scenario where application developer want to initialize the beans properties after setting all the values. The following example program demonstrates by defining a custom method to initialize the calues. Spring’s managed bean has to implement InitializingBean from …
Writing simple ANT build script
Apache Ant Example This article explains how to write a very basic ANT build script. This does not explain indepth knowledge on building your project using ANT script. But, this writeup will be more useful for the beginners who haben’t writen any ANT script before. Before start writing the script, lets look into how to …