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<>();