Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3311490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:52:59+00:00 2026-05-17T21:52:59+00:00

Our project is an Eclipse RCP application using Hibernate as an ORM. I recently

  • 0

Our project is an Eclipse RCP application using Hibernate as an ORM. I recently learned about JFace databinding, in which the GUI and data models can be synchronized automagically.

I put together a short test implementation along the lines of Lars Vogel’s excellent JFace Data Binding Tutorial and was fairly impressed with the framework.

Is there any way, then, to hook this into Hibernate, such that changes made in an observed widget are automatically persisted in the database? This seems like a natural thing to want to do, and yet I’ve found no good tutorials.

I suspect that I may be barking up the wrong tree, or have missed some fundamental concept.

Has anyone tried to do this? What’s the “best practice” here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:52:59+00:00Added an answer on May 17, 2026 at 9:52 pm

    I do not think you should persist your data model to a database after every modification in the GUI. Some reasons:

    • it could lead to really bad performance (the worst case is calling a database update after every keystoke)
    • it could be hard to implement some GUI behaviour (e.g. can your user ‘cancel’ an edit operation? How do you ‘restore’ the original values?)

    If your application form contains some kind of an Apply/Save/etc. button and a Cancel button you have some well defined points where you need to do database operations:

    • use data binding to connect your data model and the GUI
    • an Apply or Save button handler persists the edited entity in the database
    • a Cancel button handler could reload the edited entity from the database if necessary (discarding the edits)

    Just my two cents…

    Disclaimer: I used very simple examples above to illustrate my thoughts. E.g. you should never call database/Hibernate operations directly from the GUI (use a ‘middle tier’ between the GUI and the database to ensure modularity and testability).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our project is held in a SourceSafe database. We have an automated build, which
Our issue is that our project has files being downloaded using wget to the
Most of our Eclipse projects have multiple source folders, for example: src/main/java src/test/java When
Our project is running on Windows CE 6.0 and is written in C++ .
Our project has one folder that is not part of the solution. How can
In our project the Java webservice communicate with the backend program written in C
I'm looking to update our project's jaxb version from 1 to 2. Has anyone
Quick add on requirement in our project. A field in our DB to hold
We have this constant discussion in our project as to the granularity of our
Since the TFS is too big for our project, we want to use subversion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.