• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate in desktop app

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm trying to get a feel if its really feasible to use hibernate in desktop based apps, be it swing or whatever.

My questions started popping up when I started to think about refreshing in memory objects, keeping jTables up to date etc.

The documentation and examples all seem to be either very generic or specific to J2EE.

Are other OR Mapping solutiosn more suited to keeping in memory objects up to date ?

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How up to date the objects in your session are is up to you. If you open and close/flush a new session for each Database operation for example, your objects will be as up to date as the could be if you used JDBC. The longer your session, the more scope there is for data to become stale.
 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah I suppose in my specific situation, I would have a refresh button rather than try and auto refresh anyway.
It all seems to have gotten a little complicated now i've got to the stage where i'm actually trying to develop the gui with tables. At first I was using DAO Objects to load up my objects from the DB and the testing all was fine, but suddenly i'm at the point where I want to use a sortable jTable populated from one of the collections in a bean but the correct method of doing this isnt really clear.

Hmmm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic