首页    期刊浏览 2024年11月27日 星期三
登录注册

文章基本信息

  • 标题:Apply Hibernate to Model and Persist Associations Mappings in Document Version System
  • 本地全文:下载
  • 作者:Neetu Gupta
  • 期刊名称:Computer Science & Information Technology
  • 电子版ISSN:2231-5403
  • 出版年度:2013
  • 卷号:3
  • 期号:5
  • 页码:293-301
  • DOI:10.5121/csit.2013.3530
  • 出版社:Academy & Industry Research Collaboration Center (AIRCC)
  • 摘要: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
  • 关键词:ORM (Object Relational Mapping); Hibernate; XML; Association
国家哲学社会科学文献中心版权所有