• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hibernate in desktop app

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic