🔥 Welcome to Ashok IT..!! 👉 Register Here For Online Training : bit.ly/4dBYJbX 👉 Follow us in Instagram : bit.ly/3jzEKl8 👉 Follow Us in WhatsApp : bit.ly/49wCWje 👉 Visit Our Website : ashokit.in/
You've to use auto_increment constraint from MYSQL database side, and @GeneratedValue(strategy = GenerationType.IDENTITY) annotation for PRIMARY KEY in Entity class primary key
🔥 Welcome to Ashok IT..!!
👉 Register Here For Online Training : bit.ly/4dBYJbX
👉 Follow us in Instagram : bit.ly/3jzEKl8
👉 Follow Us in WhatsApp : bit.ly/49wCWje
👉 Visit Our Website : ashokit.in/
thanks alot for the explanation. specifically regarding how to generate sequence generator in db.
How to write Junit test case for the same? I m getting custom id = null in JUnit test case. Any help would be appreciated
Thank you so much sir....
Most welcome
Can we use h2data base in the place of oracle driver
Superb explanation😁Thanks
Good Explanation Sir
Nice Explanation Ashok Sir...
Thank You
👉 Subscribe To Our TH-cam Channel: bit.ly/41IHJdj
stucked at creating sequence, does anyone know how to create sequence with MySql ? I am using MySql Workbench. Thank you
You've to use auto_increment constraint from MYSQL database side, and @GeneratedValue(strategy = GenerationType.IDENTITY) annotation for PRIMARY KEY in Entity class primary key
sir in generate() method session.connection() is not available so what should i do to connect with oracle database now?
please contact our admin team : +91 9985396677
can the prefix be dynamic?
Is it possible to do that?
yes by using @Value annotation ,and declare in properties file
you can make the dynmic value
mysql doesn't have sequence right?
no... it dont support
@@ashokit Then how to implement this in mysql?
what is the diff b/w
saveAndFlush( ) and save( )
Sir in this way i want javax.persistance but i am getting jakarta.persistance package in sts
same thing bro
Java 10 onwards Jakarta
21:00 practical begins
Please Contact Our Admin Team:wa.me/+919985396677
👉 Subscribe To Our TH-cam Channel: bit.ly/41IHJdj
sir how can we perform custom generator in mysql database...
Please Contact Our Admin Team:wa.me/+919985396677
👉 Subscribe To Our TH-cam Channel: bit.ly/41IHJdj
i am not getting the "serializable generate()" only getting "object generate()"
And resolution you got
I am using
org.springframework.boot
spring-boot-starter-parent
3.2.5
🔥 Please follow us in WhatsApp channel : bit.ly/49wCWje
43:00 from dual ... what is dual ?
Please Contact Our Admin Team:wa.me/+919985396677
👉 Subscribe To Our TH-cam Channel: bit.ly/41IHJdj
Pls insert 10digit number