package io.github.saidie.plantuml_api;

import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Account {
    @Id
    @GeneratedValue
    private long id;

    @NotNull
    @Column(nullable = false)
    private String username;

    @OneToMany(mappedBy = "account", cascade = CascadeType.ALL)
    private List<Federation> federations;
}

@@ -37,69 +37,8 @@
 i;%0A%0A
-import java.util.List;%0Aimport javax.persistence.CascadeType;%0A
 impo
@@ -173,44 +173,8 @@
 Id;%0A
-import javax.persistence.OneToMany;%0A
 impo
@@ -503,114 +503,7 @@
 ame;
-%0A%0A    @OneToMany(mappedBy = %22account%22, cascade = CascadeType.ALL)%0A    private List%3CFederation%3E federations;
 %0A%7D%0A

Remove a dependency from account to federations