Open mstahv opened 10 years ago
Dear Sir,
I am new both vaadin and spring. Thankfully, this add on helps me to understand both frameworks. I have some issues, however, which I need to clarify for better understand. I can run vaadin app smoothly if I put the extended UI class the same package as application class. Vaadin app will run failed, on the other hand, if I put the extended UI class and application class on different packages. Is this normal case or I do something wrong?
Best regards, Peerasak
Hi,
A very simple JPA CRUD example is here: https://github.com/mstahv/spring-data-vaadin-crud
But I think your issue is real. Vaadin UIs are detected only from the same or sub packages, related to the configuration class. If in the above project you move the Application class to "crud.springboot" package, the Vaadin UI is not found. Not sure though if it is by design or not. Josh or Petter can answer that.
Hi, Thank you for your answer and the excellent example. I'm looking for guidance using Spring JPA with Vaadin. Your example let me more understand to start up learning. I may have more questions about Spring JPA and Vaadin integration later. I may bother you in this forum again.
Thanks
@peholmst Suggestion: Import the mentioned sample within the vaadin4Spring samples?
I could try to polish it a bit some day, add some simple example of a relation handling as well and push it in as simple-jpa-crud-example. Petter any opinions?
@mstahv Would it be possible to create a branch from your master purely for the import into Vaadin4Spring. Could you already import the license header of vaadin4spring into every Java file ?
@mstahv Go ahead!
This would be good for beginners and evaluators. Best would be to push this to Springs own examples as well.