Automated design tests to check Hibernate design recommendations

  • Taciano M. Silva Federal University of Rio Grande do Norte
  • Dalton Serey Federal University of Campina Grande
  • Jorge Figueiredo
  • João Brunet

Resumo


Developers must follow some architectural recommendations inorder to obtain the expected behavior of frameworks. For instance,Hibernate users must implement specific methods and annotatespecific classes to properly store and retrieve elements in a database.If the code of the application fails to follow such recommendations,in extreme cases, the non-conformities with architectural rules caneven lead to data loss. In this paper, we present an exploratory studyon the conformity of 77 open-source projects regarding Hibernatearchitectural rules. We identified that 76 of 77 projects do not followsuch rules and almost all persistent entities fail in at least oneof them. We also found that architectural violations can causeabnormalities in the behavior during the use of the framework. Wediscuss the reasons and implications of the projects simply ignoringarchitectural recommendations.

Publicado
23/09/2019
SILVA, Taciano M.; SEREY, Dalton; FIGUEIREDO, Jorge; BRUNET, João. Automated design tests to check Hibernate design recommendations. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SOFTWARE (SBES), 33. , 2019, Salvador. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2019 .