apg 1 ماه پیش
والد
کامیت
919343ff13
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/main/java/scot/carricksoftware/grants/domains/places/Country.java

+ 2 - 2
src/main/java/scot/carricksoftware/grants/domains/places/Country.java

@@ -17,11 +17,11 @@ import java.util.List;
 @Entity(name="`country`")
 public class Country extends BaseEntity {
 
-    @SuppressWarnings("JpaDataSourceORMInspection")
+
     @Column(name = "`name`")
     private String name;
 
-    @OneToMany(mappedBy = "`country`", cascade = CascadeType.ALL, orphanRemoval = true)
+    @OneToMany(mappedBy = "country", cascade = CascadeType.ALL, orphanRemoval = true)
     private List<Region> regions = new ArrayList<>();