Category: Hibernate

hibernate tutorials

Hibernate dynamic-insert attriburte example

This tutorial shows how to use the dynamic-insert attribute or @DynamicInsert annotation used by Hibernate. This attribute/annotation tells Hibernate whether to include null properties in the SQL INSERT statement. Dynamic-insert=false By default, dynamic-insert is...
hibernate tutorials

Mapping Enum Types with Hibernate Example

In this tutorial we show how to persist Java Enum types using Hibernate. Hibernate supports the mapping of Java enums as basic value types in various ways. The @Enumerated annotation is the original JPA-compliant...
hibernate tutorials

Hibernate Date, Time and DateTime Mapping

In this tutorial we show how to work with java.lang.Date to store Date, Time and DateTime using Hibernate Annotations or XML Mappings. Hibernate allows various Java Date/Time classes to be mapped. Like the java.sql.Date,...