File tree Expand file tree Collapse file tree
rentplace/src/main/java/kattsyn/dev/rentplace/entities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ NOT PUBLISHED (не опубликовано) - объявление уже пр
8282 private User owner ;
8383
8484 @ Schema (description = "Фотографии жилья" )
85- @ OneToMany (fetch =FetchType .EAGER )
85+ @ OneToMany (fetch =FetchType .LAZY )
8686 @ JoinTable (name = "properties_images" ,
8787 joinColumns = @ JoinColumn (name = "property_id" ),
8888 inverseJoinColumns = @ JoinColumn (name = "image_id" )
8989 )
9090 private Set <Image > images = new HashSet <>();
9191
9292 @ Schema (description = "Категории жилья" )
93- @ ManyToMany (fetch = FetchType .EAGER )
93+ @ ManyToMany (fetch = FetchType .LAZY )
9494 @ JoinTable (
9595 name = "properties_categories" ,
9696 joinColumns = @ JoinColumn (name = "property_id" ),
@@ -99,7 +99,7 @@ NOT PUBLISHED (не опубликовано) - объявление уже пр
9999 private Set <Category > categories = new HashSet <>();
100100
101101
102- @ ManyToMany (fetch =FetchType .EAGER )
102+ @ ManyToMany (fetch =FetchType .LAZY )
103103 @ JoinTable (
104104 name = "properties_facilities" ,
105105 joinColumns = @ JoinColumn (name = "property_id" ),
You can’t perform that action at this time.
0 commit comments