59:56 "Never trust a test that hasn't failed at least once" - Kudos for this!
@DineshkumarPuli3 ай бұрын
Thank you Siva and IntelliJ team, for the informative presentation!
@jesper24552 ай бұрын
Great video, learnt several useful things🙂
@gallardofabian3 ай бұрын
Excelent video, I see a lote of feature of intellij that I missed, thanks a lot
@pravinppatil21163 ай бұрын
Thanks Siva Learnt lot of things from this video
@bhargavvandana35413 ай бұрын
One of the best tutorials :)
@nicolasfelipe1Ай бұрын
thanks, learned a couple of things like executing queries from the repository.
@sivalabs3 ай бұрын
During the session, one of the questions asked was: "In database script why did you start the sequences with "101" and increment by "50"? what are those magic numbers?" "create sequence bookmark_id_seq start with 101 increment by 50;" By default, the sequence starts with 1 and increments by 1. But, I want to insert some sample data along with the primary key values. So I reserve the first 100 and configure the sequence to start with 101. With this, when the application tries to insert a new record it is going to take the next primary key value as 101. If you create sequence that start with 1 and insert sample records using SQL statement with primary key value 1, then when you try to save a new entity from the application it is going to generate the primary key value as 1 which will conflict with the existing row. So, the starts with 101 is just a convenience to insert some sample data. About the increment by 50: By default, Hibernate uses allocationSize as 50 for performance optimization. To follow the same default, I have configured the sequence to increment by 50.
@bqc-rl9tu3 ай бұрын
thank you
@AlekseyStukalov3 ай бұрын
I believe we can do a separate session to cover different types of Ids and how they work with Hibernate.
@PraveenKumar-uj2ih3 ай бұрын
Thanks a lot Siva , Great Presentation
@backtoGodhead03 ай бұрын
very nice thanks Siva! :)
@user-fh5re1rf1g3 ай бұрын
fantabulous❤❤❤👏👏👏👌👌👌 Looking for part 2
@gabrielbonilla22383 ай бұрын
Thanks Siva! 👏👏👏👏👏
@hy329063 ай бұрын
is it possible to have flyway migration script for different environment say test db, qa db and production db.
@sivalabs3 ай бұрын
Yes. We can use "spring.flyway.locations" property to configure different paths for different environments. For dev environment, you can create application-dev.properties file and set "spring.flyway.locations=classpath:db/migration/dev" and store your flyway db migration files in "db/migration/dev" directory.
@momedalhouma143 ай бұрын
waiting for episode 2.
@xinguangduanvipxinguangdua63933 ай бұрын
how to show runing JPA directly in method?
@xinguangduanvipxinguangdua63933 ай бұрын
I know that, just need upgrade to latest version of IDEA Ultimate
@VivaVlogsYT3 ай бұрын
can someone help how to get the boot-datasource-jpa auto completion ?
@sivalabs3 ай бұрын
The "boot-datasource-jpa" is a custom LiveTemplate I have created. You can learn how to use or create your own LiveTemplates from this video kzbin.info/www/bejne/pqicdYiaoJuXf68
@zeptitejute3 ай бұрын
@@sivalabsonce the properties are back to application files, what happens if you change the compose file ? Password for exemple ? Spring will use compose info or properties file ones?
@sivalabs3 ай бұрын
@@zeptitejute What is defined in the compose.yml file takes higher precedence over application.properties configuration.
@avidee913 ай бұрын
Java records for projection is more readable, clearer than compared to interface version.
@sivalabs3 ай бұрын
We can also use Records and JPA constructor expressions to build DTOs. However, if we want to load a DTO with nested DTOs I think its not possible with Constructor-expressions as of now.