Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate code in spring application  RSS feed

 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a project based on spring & hibernate frameworks. I have a form where the data is fetched using hibernate framework & validated using the spring validator interface. I have written the whole hibernate code inside the validator class file. Now, i want to know that is it good to write the hibernate code in the validator file or should i write it in the controller.

Regards,

Ujjwal Soni
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!