• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Should DAOs be singleton???

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a doubt about a design issue....My friend has to code DAO that make use of hibernate in the code..

But he is not sure about whether to make them as singleton classes...


Any suggestions would be helpful???


Regard
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need to create them as Singletons, probably more so if you have multiple users that need their own transactions, and pass the ACID tests.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic