keyboard_arrow_up
Apply Hibernate to Model and Persist Associations Mappings in Document Version System

Authors

Neetu Gupta, Amity University, Noida

Abstract

To implement any system using hibernate, a XML (Extensible Markup Language) mapping is defined that specifies how the various objects will persist in the database. The XML specifies mapping between classes and tables, properties and columns, association and foreign keys. In this paper we primarily focus on how different association among classes should be mapped in XML configuration file for persistence. A particular type of association should be specified in XML configuration file using valid elements and tags provided by hibernate. Such a defined XML document then create the valid schema, and the constraints between respective tables in the database to implement any system. Here we present how the different types of associations should be implemented in hibernate to have desired effect on the database. We also tested the use cases those may violate the constraints specified by XML configuration and studied the results.

Keywords

ORM (Object Relational Mapping), Hibernate, XML, Association

Full Text  Volume 3, Number 5