Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

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...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: