Automated design tests to check Hibernate design recommendations
Developers must follow some architectural recommendations inorder to obtain the expected behavior of frameworks. For instance,Hibernate users must implement speciﬁc methods and annotatespeciﬁc 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 identiﬁed 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.