Authors:
Evandro Kuszera
1
;
Leticia Peres
2
and
Marcos Fabro
3
Affiliations:
1
Federal University of Technology, Paraná, Dois Vizinhos, Brazil
;
2
Federal University of Paraná, Curitiba, Brazil
;
3
Université Paris-Saclay, CEA, List, Palaiseau, France
Keyword(s):
Object-NoSQL Mapper, NoSQL, Code Generation.
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 targ
et ONM. This not only streamlines developer access to NoSQL data but also facilitates comparative evaluations of different ONMs utilizing the same schema.
(More)