vaadin4spring icon indicating copy to clipboard operation
vaadin4spring copied to clipboard

Create a simple JPA CRUD example app

Open mstahv opened this issue 11 years ago • 7 comments

This would be good for beginners and evaluators. Best would be to push this to Springs own examples as well.

mstahv avatar Sep 18 '14 15:09 mstahv

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

pwangsom avatar Oct 15 '14 15:10 pwangsom

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.

mstahv avatar Oct 15 '14 17:10 mstahv

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

pwangsom avatar Oct 16 '14 16:10 pwangsom

@peholmst Suggestion: Import the mentioned sample within the vaadin4Spring samples?

gjrtimmer avatar Jan 29 '15 16:01 gjrtimmer

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 avatar Jan 29 '15 16:01 mstahv

@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 ?

gjrtimmer avatar Jan 30 '15 10:01 gjrtimmer

@mstahv Go ahead!

peholmst avatar Feb 02 '15 06:02 peholmst