Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
NOT LIKE in Hibernate Criteria
The Hibernate Criteria Not like, selects the records that don't match to the matching string given in like parameter.
Example:
Criteria criteria=session.createCriteria(Tickit.class); //Here you can pass class on which you want to perf...
Error: No identifier specified for entity
I was working with spring 4 integration with hibernate 4 and encountered and error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ...CustomConfiguration: Invocat...
Spring security 3: database authentication with hibernate
For authenticating the user via spring security we need to make our own custom authentication-provider. We can make our custom UserDetailService easily, here is the sample custom code
MyUserDetailsService.java
package com.users.serv...
Hibernate One to Many Mapping
One to many mapping
One-to-many mapping means a mapping in which each record in one table is linked to multiple records in another table. Like a parent record in one table can have several child records in another table.The parent is not requi...
Hibernate One to One Mapping
Basic Hibernate Mapping:
One to one mapping
One to one mapping is performed by one-to-one element. No foreign key is created in primary table.
Let us see one simple example, in which we are using bidirectional association.
There ar...
Inheritance in Hibernate
Sometimes we need to apply inheritance in Hibernate as per our requirement. Here I'm explaining the Hibernate Inheritance using "Table per subclass: using a discriminator".
Suppose we've a class User with subclass Student. And in this approach...
Hibernate environment in Spring
Spring comes with a family of data access frameworks that integrate with a variety of data access technologies. Whether youre persisting your data via direct JDBC, iBATIS, or an object relational mapping (ORM) framework such as Hibernate, Spring...