Java List to Json : Here is a simple example program for how to converting java list data into the Json file using jackson. JavaListToJsonFile.java import java...
Author - Mathan Lal
Java object to Json : Here is a simple example program for how to converting java object data into the Json file using jackson. JavaObjectToJsonFile.java...
Here is a simple example program for how to converting java string data into the Json file using jackson. JavaStringToJsonFile.java package com...
JSON Advantages Simple syntax, which results in less “markup” overhead compared to XML. Easy to use with JavaScript as the markup is a subset of JS...
What is JSON? JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server...
Hibernate Version management The <version> element is optional and indicates that the table contains versioned data. This is particularly useful if you...
Hibernate Batch processing Normally basic approach for inserting 100,000 rows in the database using Hibernate may fails in OutOfMemoryException. If you are...
Hibernate filters Hibernate3 provides an innovative new approach to handling data with “visibility” rules. A Hibernate filter is a global, named...
Hibernate Version management The @version element is optional and indicates that the table contains versioned data. This is particularly useful if you plan to...
Hibernate Version management The <version> element is optional and indicates that the table contains versioned data. This is particularly useful if you...
Hibernate Filters Annotation Hibernate3 provides an innovative new approach to handling data with “visibility” rules. A Hibernate filter is a...
Hibernate filters Hibernate 3 provides an innovative new approach to handling data with “visibility” rules. A Hibernate filter is a global, named...
Hibernate Component Mapping Annotation Component dependent object: A component is a contained object that is persisted as a value type and not an entity...
Component dependent object A component is a contained object that is persisted as a value type and not an entity reference. The term “component”...
One to One Mapping Annotation: @OneToOne(cascade = CascadeType.ALL) Student.java package com.candidjava.hibernate; import javax.persistence.CascadeType; import...
Many-to-Many Association Mapping Annotation This tutorial shows you Many to many relationship hibernate example using Join table annotations A many-to-many...
One-to-many Association Mapping Annotation One-to-many associations are declared at the property level with the annotation @OneToMany. One to many associations...
Many to One Mapping Annotation: To link one entity to another, you need to map the association property as a to one association. In the relational model, you...
One to Many Mapping XML based A unidirectional One-to-many association on a foreign key is an unusual case, and is not recommended. Consider referring One to...
Many to Many Mapping XML based A unidirectional Many-to-many association mappings need 3 tables, the intermediate table contains primary key of both the entity...