JavaBeat
calling cards | international calling cards | phone card
Search JavaBeat

JAVABEAT
home
tips
articles
QnA
forums
TIPS TOPICS
Java Basics
JSP
JSF
Spring
Hibernate
EJB 3.0
JMS
Log4j
Ant
Eclipse
Netbeans
ARCHIVE
2008 | 08 07 06 05 04 03 02 01
2007 | 12 11 10 09 08
Enter email address:

Latest JavaBeat Tips Delivered
OUR NETWORK
javabeat
planetoss
Pages : 1 2 [Total Tips : 12]

Configure MySql database with Hibernate mappings
Author : JavaBeat
Date : Tue Jul 29th, 2008
Configuring MySql database with hibernate is the same as with other databasses.The only difference will be connection url and the database dialect to be specified in the configuration file. This tips provides a basic example configuration file for configuaring the MySql with hibernate. But it doesnot explain you installing the MySql database.

Collection Mapping in Hibernate : one-to-many
Author : JavaBeat
Date : Tue Jul 29th, 2008
This article explains how to map two classes in collection mapping. In this example one Author object has the list of Book objects. Both the classes are mapped and will be inserted together into the database. Here this example uses Bag as the collection type. Other collection types available are Set,List,Array. Look into the example programs for more detail.

Comparison operators in Hibernate
Author : JavaBeat
Date : Sat Jul 26th, 2008
HQL supports all the operators used in the SQL language. But, Criteria API doesn't support the arithmetic expressions. Apart from that, it is easy to use other operators in the Criteria API itself. This tips provides few basic example programs on using the operators.

NULL and NOT NULL comparison in the Hibernate API
Author : JavaBeat
Date : Sat Jul 26th, 2008
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.

How to use named parameters and named query in Hibernate?
Author : JavaBeat
Date : Sat Jul 26th, 2008
There is two types of query parameters binding in the Hibernate Query. One is positioned parameter and another one is named parameters. But, hibernate recommend to use the named parameters since it is more flexible and powerful compare to the positioned parameter.

Pagination in Hibernate Query API
Author : JavaBeat
Date : Sat Jul 26th, 2008
Pagination is the very common problem for the most of the eneterprise applications. When we are retrieving thousands of records from the database, it is not good idea to retrieve all the records at the same time. So, we have to implement some sort of pagination concept in your application to restrict the number of rows to be fetched from the database.

Three ways to create query in Hibernate
Author : JavaBeat
Date : Sat Jul 26th, 2008
To create query in the Hibernate ORM framework, there is three different types. The folloing are the three ways to create query instance:

How to use datasource in Hibernate application?
Author : JavaBeat
Date : Wed Jul 23rd, 2008
This article explains how to configure datasource in the JBoss application server and how to use the same datasource in the hibernate configuration file. Before looking into the hibernate configuration, we will satrt with creating datasource inside JBoss application server.

Hibernate Criteria Query Example
Author : JavaBeat
Date : Wed Jul 23rd, 2008
Criteria APIs in the hibernate framework is useful for creating the dynamic query to execute. It is an alternative way to write the queries without using HQL. The queries are generated at runtime and excuted on the fly. Application developer need not worry about writing the query in hand, he/she just need to use APIs provided in the hibernate. It is one of the elegant way to write the queries in hibernate.

How to Configure hibernate using XML files?
Author : JavaBeat
Date : Sat Jul 19th, 2008
Using XML files for configuring hibernate application is the most widely used approach. This is simple one and less whanges needed in the future. There is two types of configuration we can do using XML files. one is non-managed environment and another one is for managed environment. Here we will explain about the non-managed environment or standalone program. In the managed environment you can use datasourec for establishing connection to the database instead directly specifying all the properties in the configuration file.

 
Pages : 1 2

Favorites
AffiliatedAds.com
Buy movies
Access Control
Busby seo challenge contest
Sohbet
Chat
Webmaster Hosting Forum
Java Jobs
MyVideoLib
India News
Internet Advances
Sohbet
chat
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Website (2004-2008), India
javabeat | about us | planetoss
Copyright (2004 - 2008), JavaBeat