Automated design tests to check Hibernate design recommendations
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.