MfCodeGenerator: A Code Generation Tool for NoSQL Data Access with ONM Support

Evandro Kuszera, Leticia Peres, Marcos Fabro

2024

Abstract

NoSQL databases are generally employed in scenarios that require horizontal scalability and flexibility in data schema. Applications can access the NoSQL database through native APIs or through ONMs (Object-NoSQL Mappers). The latter provides a uniform data access interface, decoupling the application from the database and reducing vendor lock-in. However, ONM code creation should be performed by developers and can be cumbersome and error prone. In this paper we propose an approach to generate ONM code based on a NoSQL schema that describes the structure of the entities and their relationships. From the NoSQL schema, our tool is used to generate code for three widely used Java-based ONMs. To evaluate the approach we perform experiments to read and write data to and from an existing MongoDB database using the generated code. Through the results obtained, it was possible to verify that the tool is capable of generating code according to the NoSQL schema and the requirements of the target ONM. This not only streamlines developer access to NoSQL data but also facilitates comparative evaluations of different ONMs utilizing the same schema.

Download


Paper Citation


in Harvard Style

Kuszera E., Peres L. and Fabro M. (2024). MfCodeGenerator: A Code Generation Tool for NoSQL Data Access with ONM Support. In Proceedings of the 26th International Conference on Enterprise Information Systems - Volume 1: ICEIS; ISBN 978-989-758-692-7, SciTePress, pages 232-239. DOI: 10.5220/0012557800003690


in Bibtex Style

@conference{iceis24,
author={Evandro Kuszera and Leticia Peres and Marcos Fabro},
title={MfCodeGenerator: A Code Generation Tool for NoSQL Data Access with ONM Support},
booktitle={Proceedings of the 26th International Conference on Enterprise Information Systems - Volume 1: ICEIS},
year={2024},
pages={232-239},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012557800003690},
isbn={978-989-758-692-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 26th International Conference on Enterprise Information Systems - Volume 1: ICEIS
TI - MfCodeGenerator: A Code Generation Tool for NoSQL Data Access with ONM Support
SN - 978-989-758-692-7
AU - Kuszera E.
AU - Peres L.
AU - Fabro M.
PY - 2024
SP - 232
EP - 239
DO - 10.5220/0012557800003690
PB - SciTePress