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

  • Home
  • SEARCH
  • 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 in eclipse approximately shows the following folders: application - src - JRE
I am using Eclipse 3.5 for several different Java/JSP projects. All of our project
I have only a basic understanding of Eclipse RCP. I am about to start
Our current product is based on Eclipse RCP. We are starting to have problems
We run org.eclipse.ant.core.antRunner to build our plugins and RCP projects. In the build logs
I'm adding an eclipse project to our existing code-base, and I'd like to know
I want to use Selection Service feature from the eclipse RCP in my swing
Our project has more than 300 JSP files and more than 200 JavaScript files.
Whenever I update our project's code from the svn I have to set the
In order to use the instrumentation features introduced in JDK 5, you can use

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.