Update application properties for development profile and adjust cascade type in Tutorial entity
This commit is contained in:
@@ -27,7 +27,7 @@ public class Tutorial {
|
|||||||
@Column(name = "tobepublished")
|
@Column(name = "tobepublished")
|
||||||
private boolean tobepublished;
|
private boolean tobepublished;
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
|
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
|
||||||
@JoinColumn(name = "userID", nullable = false)
|
@JoinColumn(name = "userID", nullable = false)
|
||||||
private User user;
|
private User user;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#bootJar with profile prod
|
#bootJar with profile prod
|
||||||
spring.profiles.active=prod
|
#spring.profiles.active=prod
|
||||||
|
|
||||||
#spring.profiles.active=dev
|
spring.profiles.active=dev
|
||||||
|
|||||||
Reference in New Issue
Block a user