I know that this is used for testing. My bad that I labeled it as a bug, I should’ve chosen improvement. I apologize for that! The problem I see in such code is the copy-and-paste developers, who could copy this code and use it thinking that hibernate developers would always perform best practices. It's an opinion that's all. Thanks for your response. |