Hey, thank you so much for your clear explanations and step by step guide on how things work. I was extremely confused on this and your video is knight in shining armor for my problems. Can't express how grateful I am after hours of researching.
As we know the below hibernate annotation generates a new number each time from the sequence starting from 1. Consider a situation wherein i have a set of records with ids(1-5).Now a record is deleted from the table which had id as 3. If we see number 3 is missing from the sequence 1-5 now because of the operation. I have a requirement for the sequence to re-generate and reassign that number 3 when i will be adding new record in the table. How to do this ?
Good explanation. I have one query 1. The Id generator scope has changed from local scoped to global scope in strict adherence to the JPA. 2. How to overcome the "Found duplicate generator" message.
😂 😂 the guy starts explaining TABLE strategy red something from a slide then said it's not recommended and changed it to SEQUANCE without explaining how it works, basic Indian tutorial 😂 😂
Complete Spring Data JPA Tutorial playlist at ruclips.net/p/PLGRDMO4rOGcPtMMl1DD2cu3GBPZloHOS_
Hey, thank you so much for your clear explanations and step by step guide on how things work. I was extremely confused on this and your video is knight in shining armor for my problems. Can't express how grateful I am after hours of researching.
Ausom Explanation
Thank you, brother!
As we know the below hibernate annotation generates a new number each time from the sequence starting from 1. Consider a situation wherein i have a set of records with ids(1-5).Now a record is deleted from the table which had id as 3. If we see number 3 is missing from the sequence 1-5 now because of the operation. I have a requirement for the sequence to re-generate and reassign that number 3 when i will be adding new record in the table. How to do this ?
How you recommend build custom select (inner join, for example). And how to return it on a controller? Thank you!
Good explanation. I have one query
1. The Id generator scope has changed from local scoped to global scope in strict adherence to the JPA.
2. How to overcome the "Found duplicate generator" message.
How to reset the next val in the seq table from number 1. ??
How to write if iam connecting with my sql from spring boot and id column as uuid id(uuid as datatype,id as column name)
Sequence type generation is not supported by MySql
I do have a small problem can you please take my anydesk
waah beta🤣🤣🤣
hey can anyone tell, how to auto-increment a column which is not a primary key i.e not annotated with @Id
Same question
to auto-increment a column which is not a primary key
@Column(name = "id", columnDefinition = "INT AUTO_INCREMENT")
private Integer id;
please help me out with a solution !!!!!!!!!
😂 😂 the guy starts explaining TABLE strategy red something from a slide then said it's not recommended and changed it to SEQUANCE without explaining how it works, basic Indian tutorial 😂 😂