การพัฒนาโปรแกรมสร้างไฟล์สนับสนุนการใช้งานสำหรับเอ็นไฮเบอร์เนต / วิโรจน์ สุจิรวรกุล = Development of a supporting file generator program for Nhibernate / Wiroch Sujiraworakun
This thesis aims to develop the common enterprise business applications, the best practice is to exploit application framework which typically concerns the layered design in order to gain the most flexibility during application maintenance. One of the popular Persistence Layer implementation techniques is the object relational mapping (ORM) and NHibernate are one of ORM tools developed for C#. However, to prepare the NHibernate assembly files manually is very complicated and error-prone. This paper proposes an alternative to generate NHibernate assembly files - XML configuration file, Persistent Class files and XML Mapping files, automatically right away from UML Class Diagram in XML format. The mostly used class relation constraints are supported - one-to-one, one-to-many and many-to-one relation between classes, via multiplicity symbols. Moreover, SQL script file containing the set of data definition language (DDL) is generated as well to provide and ensure the creation of the consistent relational database schema to the original UML Class Diagram. The test cases show that the generated assembly files are conform to the original NHibernate requirements without any problem. However, The results also show that the generating process consumes more time due to the details of class description in XMI format.