|
Hi,
I need your opinion about design tests. I wrote design tests for domain model rules (persistent classes) that they are described on documentation. In documentation we have: Hibernate works best if these classes follow the Plain Old Java Object (POJO) / JavaBean programming model.
For example, I wrote a rule that checks if the entity (persistent class) implements the equals/hashCode and if these methods access the identifier property (@id). So, the rule returns true or false and notifies the developer or software architect.
I would like your opinion about the utility of the rules like these! How I could validate these rules and if a pull request for documentation would be interesting. Initially, I would like a review of the best way to proceed.
Thanks in advance!
|