ManyToMany in Kotlin Spring Data JPA (with source code)

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 7

  • @konstantinvolkov2629
    @konstantinvolkov2629 2 місяці тому

    Yeah thanks a lot

  • @ejfuhr
    @ejfuhr 2 роки тому

    First, great tutorial! but i've been having trouble getting Liquibase to install the data. It works great when creating the student and course tables, but doesn't install "Alice", "Bob" "Charlie" or the courses. I grabbed our source code, hooked up with my MYSQL, created the tables but the inserts were not performed. ANy ideas as to why?

    • @vladsavecoding4111
      @vladsavecoding4111  2 роки тому

      Thanks. That's strange because the table creation and row inserts are in the same changeSet so they will happen all or none. Are you getting an error when starting the project? Also, you are using MySQL as the database, right? Just making sure

  • @andyhuizenga5136
    @andyhuizenga5136 2 роки тому

    Hi! Do you have time today? My app that is based on your video has a little problem.

  • @andrewbelozertsev6911
    @andrewbelozertsev6911 Рік тому

    Thank you, Vlad, for your tutorial. It have been very usefull for me. But I have an issue, maybe you can help me. I have similar tables. I have student, courses and I need to store scores. How can I Add and Use the third column in m2m relationship?
    In the result I need to send with get Request something like this: {
    Student-id,
    Student-name,
    Student-courses:{
    course-id,
    course-name,
    course-scores
    }
    }

    • @vladsavecoding4111
      @vladsavecoding4111  Рік тому +1

      You can create a new entity for scores and then do a new relationship from student to score. It can be ManyToMany but for scores I think OneToMany is more appropriate