Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a simple JPA CRUD example app #77

Open
mstahv opened this issue Sep 18, 2014 · 7 comments
Open

Create a simple JPA CRUD example app #77

mstahv opened this issue Sep 18, 2014 · 7 comments

Comments

@mstahv
Copy link
Collaborator

mstahv commented Sep 18, 2014

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

@pwangsom
Copy link

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

@mstahv
Copy link
Collaborator Author

mstahv commented Oct 15, 2014

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.

@pwangsom
Copy link

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

@gjrtimmer
Copy link
Collaborator

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

@mstahv
Copy link
Collaborator Author

mstahv commented Jan 29, 2015

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?

@gjrtimmer
Copy link
Collaborator

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

@peholmst
Copy link
Owner

peholmst commented Feb 2, 2015

@mstahv Go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants