Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate + Singleton + SYNC + DB Table

 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If I configure my hibernate to be singleton,

then the Objects will be loaded once,

Behind the scene (consider Still the server is running),

In case if I alter/drop the Database Table structure,

How does these singleton objects react ?

what steps can be performed to ensure this ?



Thanks in advance!!
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...In case if I alter/drop the Database Table structure, How does these singleton objects react ?

I'd say protect the DB access as this might not be a scenario in which Hibernate is designed for. But I haven't tried that to see exactly what happens.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!