• Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate code in spring application

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!