Spring Data JPA Tutorial - #9 - Primary key generation strategies AUTO, IDENTITY, SEQUENCE and TABLE

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 18

  • @JavaGuides
    @JavaGuides  2 года назад +4

    Complete Spring Data JPA Tutorial playlist at ruclips.net/p/PLGRDMO4rOGcPtMMl1DD2cu3GBPZloHOS_

  • @donothack
    @donothack 2 года назад +2

    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.

  • @rajneeshraikwar8352
    @rajneeshraikwar8352 Год назад

    Ausom Explanation

  • @HimanshuGupta-jx4nk
    @HimanshuGupta-jx4nk Год назад

    Thank you, brother!

  • @saiprakashsarisa726
    @saiprakashsarisa726 2 года назад +1

    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 ?

  • @williamsecchi1215
    @williamsecchi1215 2 года назад

    How you recommend build custom select (inner join, for example). And how to return it on a controller? Thank you!

  • @arjunanke7043
    @arjunanke7043 Год назад

    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.

  • @BEC-VISHNURAMT
    @BEC-VISHNURAMT 10 месяцев назад

    How to reset the next val in the seq table from number 1. ??

  • @vyshnavivyshu4975
    @vyshnavivyshu4975 2 года назад

    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)

  • @neon0wl2107
    @neon0wl2107 Год назад

    Sequence type generation is not supported by MySql

  • @Jobpost4u
    @Jobpost4u Год назад

    I do have a small problem can you please take my anydesk

  • @vaibhavasrivastava3957
    @vaibhavasrivastava3957 Год назад +1

    hey can anyone tell, how to auto-increment a column which is not a primary key i.e not annotated with @Id

    • @shantanusingh7423
      @shantanusingh7423 Год назад

      Same question

    • @emailforlib
      @emailforlib Год назад +1

      to auto-increment a column which is not a primary key
      @Column(name = "id", columnDefinition = "INT AUTO_INCREMENT")
      private Integer id;

  • @saiprakashsarisa726
    @saiprakashsarisa726 2 года назад

    please help me out with a solution !!!!!!!!!

  • @CasRae
    @CasRae Год назад +1

    😂 😂 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 😂 😂