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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 18

  • @JavaGuides
    @JavaGuides  2 ปีที่แล้ว +4

    Complete Spring Data JPA Tutorial playlist at th-cam.com/play/PLGRDMO4rOGcPtMMl1DD2cu3GBPZloHOS_.html

  • @donothack
    @donothack ปีที่แล้ว +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.

  • @arjunanke7043
    @arjunanke7043 10 หลายเดือนก่อน

    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.

  • @williamsecchi1215
    @williamsecchi1215 2 ปีที่แล้ว

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

  • @saiprakashsarisa726
    @saiprakashsarisa726 ปีที่แล้ว

    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 ?

  • @rajneeshraikwar8352
    @rajneeshraikwar8352 10 หลายเดือนก่อน

    Ausom Explanation

  • @BEC-VISHNURAMT
    @BEC-VISHNURAMT 7 หลายเดือนก่อน

    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)

  • @HimanshuGupta-jx4nk
    @HimanshuGupta-jx4nk 11 หลายเดือนก่อน

    Thank you, brother!

  • @neon0wl2107
    @neon0wl2107 ปีที่แล้ว

    Sequence type generation is not supported by MySql

  • @Jobpost4u
    @Jobpost4u ปีที่แล้ว

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

    • @neon0wl2107
      @neon0wl2107 ปีที่แล้ว

      waah beta🤣🤣🤣

  • @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 ปีที่แล้ว

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

  • @saiprakashsarisa726
    @saiprakashsarisa726 ปีที่แล้ว

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