• 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
Pie
Posts: 3930
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic