Java tutorial: Spring Boot database setup with JPA and Spring Data (part 5)

  Рет қаралды 26,495

vaadinofficial

vaadinofficial

Күн бұрын

Пікірлер: 41
@thebackendguru
@thebackendguru 4 жыл бұрын
Also, thank you for supplying the download link for this exact starter pack, i found the link in one of your response to the comments from an earlier video... GREAT JOB With the responses ...
@lumea-arboris
@lumea-arboris 4 жыл бұрын
This is amazing. Thank you very much, this is an amazing technology
@giavudai6543
@giavudai6543 11 ай бұрын
Hello thank you for your course, i would like to ask u if you cant send me link with the test data and all the libraries, as i cant see any on the website
@keldur16
@keldur16 11 ай бұрын
I believe the link is in the description
@dermacon5172
@dermacon5172 3 жыл бұрын
Great Tutorial
@vaadinofficial
@vaadinofficial 3 жыл бұрын
Glad it was helpful!
@tensonchan9740
@tensonchan9740 4 жыл бұрын
Sorry, when i try to add @MappedSuperclass to AbstractEntity, it seem didnt find the javax library ... i am using windows desktop
@tensonchan9740
@tensonchan9740 4 жыл бұрын
i found need to add code to pom.xml org.eclipse.persistence javax.persistence 2.2.1
@rifatburaktozkoparan1454
@rifatburaktozkoparan1454 3 жыл бұрын
Excellent tutorial, thanks. What happens at 2:52 does not happen on my ide, can you give a hint please? how do you create a bunch of code there? I have only enum when I type e
@vaadinofficial
@vaadinofficial 3 жыл бұрын
That is a template I used to avoid having to type so much. If you just started with this tutorial, I strongly recommend following the latest version that's up on vaadin.com/docs/latest/flow/tutorials/in-depth-course, it removes the need for a lot of this boilerplate. I'm in the process of recording an updated version of the video tutorial, hopefully out in the next couple of weeks.
@rifatburaktozkoparan1454
@rifatburaktozkoparan1454 3 жыл бұрын
@@vaadinofficial thank you, can't wait!
@anujchaturvedi6296
@anujchaturvedi6296 4 жыл бұрын
What does Logger do ?
@q7_
@q7_ 4 жыл бұрын
You can make logs with it.
4 жыл бұрын
Hi I have one veeeerryy important question! when you write there service:testdata ... It come automaticaly! why it does not come to my Intellij?? Thnx.
@jonybear1691
@jonybear1691 4 жыл бұрын
Hello! love this series. one question: my intellij cant find the two dependencies you added (h2 and the boot starter) from the websites you listed. why is that?
@trdngy8230
@trdngy8230 3 жыл бұрын
it is probably about dependency management in pom file. You should create a question on Stackoverflow and post your pom.xml there for the convenience :-)
@kvngferg
@kvngferg Жыл бұрын
Is there a reason my maven jpa-h2 isn't poping up ?
@vaadinofficial
@vaadinofficial Жыл бұрын
It was a custom shortcut I used to save some typing
@bathulanagendra4621
@bathulanagendra4621 4 жыл бұрын
Hi sir nice video,Today i learnt how to generate primary key for all entitys using abstract class with sequence,nice trick you explained.but had a small doubt like , what is the purpose of clonable interface you used in contact entity.if you don't mind can you guide me on use of clonable interface with entity classes.thanks in advance. I'm following your videos regularly.and I'm very much interested to learn vaadin.Please share more videos on Vaadin and don't stop sharing Vaadin videos.im trying to implement full stack project in vaadin with your video tutorials.
@johanneshayry8498
@johanneshayry8498 4 жыл бұрын
Cloneable is a marker interface to signal Object.clone() that is legal to make a field-by-field copy of the object. The default clone method creates a shallow copy. What comes to this tutorial and using it with Entity, I don't think it's actually needed.
@marcushellberg13
@marcushellberg13 4 жыл бұрын
You're right. That interface was there on an earlier version of this tutorial app before it had a database, and I forgot to remove it. Thanks for the heads up.
@skoczman
@skoczman 4 жыл бұрын
Thank you for great tutorial! Can you tell what plugin do you use to generate entity code (when you type entity)? Thanks!
@vaadinofficial
@vaadinofficial 4 жыл бұрын
It's a custom live template I created, you can copy the code from the text version of the tutorial. The link is in the description.
@thebackendguru
@thebackendguru 4 жыл бұрын
Hi, please help, i have followed the tutorial successfully until the adding of the 2 Dependencies, i can see that the spring-boot-starter-jpa seems to have been replaced with the spring-boot-starter-json , so what has replaced the com.h2database because i can't continue with the tutorial unless those two are configured ... PLEASE RESPOND
@vaadinofficial
@vaadinofficial 4 жыл бұрын
spring-boot-starter-jpa has not been replaced, it is the correct dependency. The H2 dependency is also correct. See github.com/vaadin-learning-center/crm-tutorial/blob/29bd9d62d6a5c08b65124fb3139aa491045eec77/pom.xml#L120
@thebackendguru
@thebackendguru 4 жыл бұрын
​@@vaadinofficial Ok, and thank you very much ... am now having a new error which is saying import java.persistence.GeneratedValue; does not exist ... NB: I copied and pasted from the file, and the manual import as well as the auto import is not working for me ... Also I could not find the actual template you used, hence i created a new one from the start.vaadin.com/?preset=lts and attempted to follow the tutorial .... please help ...
@thebackendguru
@thebackendguru 4 жыл бұрын
Hi, can you also please create a video with mysql database option ... i think it would be a great complement to the current videos ...
@vaadinofficial
@vaadinofficial 4 жыл бұрын
The last video and text tutorial covers using MySQL for production.
@dmitryvoronov669
@dmitryvoronov669 4 жыл бұрын
Hi, how to create a class relationship with Oracle? What needs to be changed in the code?
@marcushellberg13
@marcushellberg13 4 жыл бұрын
I'm not that familiar with Oracle, but it should be enough that you add the oracle driver to your pom.xml and configure it in application.properties, something like spring.jpa.hibernate.ddl-auto=create-drop spring.datasource.url=jdbc:oracle:thin:@localhost:1521:xe spring.datasource.username=system spring.datasource.password=password spring.datasource.driver-class-oracle.jdbc.driver.OracleDriver There are good tutorials on using Spring Boot and Oracle, for instance mkyong.com/spring-boot/spring-boot-spring-data-jpa-oracle-example/, that will be helpful
@dmitryvoronov669
@dmitryvoronov669 4 жыл бұрын
@@marcushellberg13 ,thanks! One question. If I work through Oracle base. I have to create 2 tables: "Contact" and "Company"? Or something else? What set of fields should the tables have?
@vaadinofficial
@vaadinofficial 4 жыл бұрын
@@dmitryvoronov669 If you define spring.jpa.hibernate.ddl-auto=create, it should create the tables for you.
@dmitryvoronov669
@dmitryvoronov669 4 жыл бұрын
@@vaadinofficial Fire! Everything works!
@dimitriosgerontopoulos5165
@dimitriosgerontopoulos5165 4 жыл бұрын
Link with Text version does not work. Thanks
@vaadinofficial
@vaadinofficial 4 жыл бұрын
It seems like our website was down for a bit. See if you can access it now.
@malinmalindic8582
@malinmalindic8582 4 жыл бұрын
Hi there, thanks for tutorials, but I have one question, when work with SpringBoot, in my opinion it is enough to have interfaces that extends JpaRepository, and we already have nice rest end point (JSON response) , is there any kind of need to make Service.
@marcushellberg13
@marcushellberg13 4 жыл бұрын
There's not a strict need to do that, but in my opinion, it's a good practice. If you let the UI layer use the repository directly, you have no way of restricting which methods should be available to it. For instance, maybe you don't want to expose the delete method to the UI directly. Since it's an interface, you also cannot add any additional business logic to calls: updating related entities, triggering sales transactions, etc. So, in a simple app like this, it doesn't give you that much benefit, but in almost any real app, I would recommend having a service layer where you can keep your business logic and orchestrate access to the database and other sub-systems.
@malinmalindic8582
@malinmalindic8582 4 жыл бұрын
@@marcushellberg13 thanks a lot
@ayrat11
@ayrat11 4 жыл бұрын
Very usefull!
@mr.abdullahabdulmajeed7769
@mr.abdullahabdulmajeed7769 3 жыл бұрын
wow
@mogulisvalar3369
@mogulisvalar3369 2 жыл бұрын
Why? project builds without errors, but fails when ran... "@OneToOne or @ManyToOne on org.vaadin.example.backend.entity.Contact.company references an unknown entity: org.vaadin.example.backend.entity.Company"
Hibernate & JPA Tutorial - Crash Course
24:27
Marco Codes
Рет қаралды 117 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Юрий Артамонов - Анатомия и физиология Vaadin Flow
1:01:46
JPoint, Joker и JUG ru — Java-конференции
Рет қаралды 8 М.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 203 М.
Introduction to Vaadin Designer with IntelliJ IDEA
21:46
vaadinofficial
Рет қаралды 22 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 113 М.
How to Design a Database
10:57
Database Star
Рет қаралды 78 М.
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 218 М.
Calling REST from Java with Spring WebClient
9:43
vaadinofficial
Рет қаралды 20 М.
Spring Tips: Vaadin Flow and Spring Boot 3
18:05
SpringDeveloper
Рет қаралды 23 М.
Spring Data JPA Tutorial | Full In-depth Course
2:20:14
Daily Code Buffer
Рет қаралды 399 М.
How does Vaadin Flow work? (deep dive)
28:18
vaadinofficial
Рет қаралды 4,3 М.