Search Results for: Hibernate
Hibernate Architecture Setting Up Hibernate Hibernate Annotation Example Hibernate XML Example Hibernate O/R Mapping Annotations vs Configuration hbm2ddl Configuration Using session.get method Hibernate Update Query Hibernate Delete Query Value Types and Embedding Objects Saving Collections …
In this tutorial, you will see the use of Restrictions class in java. It is used to restrict the retrieval of data from database. Syntax: Criteria criteria = session.createCriteria(Model.class); criteria.add(Restrictions.eq(propertyName, propertyValue)); Criteria restrictions query …
Many to many mapping in hibernate is required when each record in an entity may have many linked records in another entity and vice-versa. In this tutorial you will learn how to map many-to-many relationship …
Hibernate Architecture and API- In this Hibernate Architecture tutorial we include all components. Hibernate Architecture is layered with many objects such persistent object, session factory, transaction factory, connection factory, session, transaction etc. Let see below …
In the previous tutorial we learned about the entity class has the field of the value type object and also has the collection of the value type objects. In this tutorial of One to One …
Now we’ll learn about the Saving Collections in Hibernate with Example. In the previous tutorial, we learned about Embedding value type object. Now what will be doing when there are a lot of embeddable objects …
Often times, developer like to put HQL string literals scatter all over the Java code, this method is hard to maintain and look ugly. Fortunately, Hibernate come out a technique called “named queries” , it …