Hey guys,
I am looking for a way to react to a button click in a different class in a different package. I developed a hibernate application and now I want to combine it with a Vaadin UI. Basically the purpose of the UI is to enter information on a new object, which is then supposed to be saved in a MySQL database. As soon as the button “Save User” is clicked, I want the session.save(); method to be called. As I mentioned, my problem is that I don’t know how to call this method as a reaction to the button click in a different class.
Thankful for any kind of help,
Simon