Have you adjusted the keys in your service, now UserSet should have two keys unlike the blog you follwed. Also same keys will cascade down to Photo entity as well. It is also advised to have a thord key in Photo Entity to preserve its distinctiveness and honor the cardinality of 1 user to N photos.
Add comment