Update application properties for development profile and adjust cascade type in Tutorial entity

This commit is contained in:
liosha84
2025-08-04 13:30:06 +03:00
parent 4f0fab7d59
commit a879d1bda5
2 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ public class Tutorial {
@Column(name = "tobepublished")
private boolean tobepublished;
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
@JoinColumn(name = "userID", nullable = false)
private User user;
+2 -2
View File
@@ -1,4 +1,4 @@
#bootJar with profile prod
spring.profiles.active=prod
#spring.profiles.active=prod
#spring.profiles.active=dev
spring.profiles.active=dev