title: JPA - does not work cascada type all
body: <p>I have a problem with saving the list of entities in the database.</p>
  
  <p>I have entity</p>
  
  <pre><code>@Entity
  @Table(name = "movies")
  @Data
  public class MovieEntity {
  
      @Id
      @Column(unique = true, updatable = false)
      @GeneratedValue
      private Long id;
  
      @OneToMany(mappedBy = "movie", cascade = CascadeType.ALL)
      private Set&lt;MovieDescription&gt; descriptions;
  }
  </code></pre>
  
  <p>with classes</p>
  
  <pre><code>@Entity
  @Data
  @EqualsAndHashCode(callSuper = true)
  @DiscriminatorValue(value = MovieField.Values.DESCRIPTION)
  public class MovieDescription extends MovieInfo {
  
      private String description;
  }
  </code></pre>
  
  <p>which inherits from</p>
  
  <pre><code>@Entity
  @Table(name = "movies_info")
  @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
  @DiscriminatorColumn(name = "dtype")
  @Data
  public class MovieInfo {
  
      @Id
      @Column(unique = true, updatable = false)
      @GeneratedValue
      private Long id;
  
      @ManyToOne
      private MovieEntity movie;
  }
  </code></pre>
  
  <p>Although I am using <code>cascade = CascadeType.ALL</code> when using such a code</p>
  
  <pre><code>final MovieEntity movie = new MovieEntity();
      movie.setStatus(EditStatus.WAITING);
      movie.setTitle(movieDTO.getTitle());
      movie.setType(movieDTO.getType());
      movieDTO.getDescription().ifPresent(description -&gt; {
          MovieDescription movieDescription = new MovieDescription();
          movieDescription.setDescription(description);
          movie.getDescriptions().add(movieDescription);
      });
  this.movieRepository.save(movie);
  </code></pre>
  
  <p>is saved to the database the object itself <code>MovieEntity</code>without <code>MovieDescription</code>. The mapped list does not save to the database. Why?</p>