How to filter child collection by one of its attributes in Spring Data JPA

I have a Post entity with a collection of Comment as shown below @Entity @Table(name = “post”) public class Post { @Id private Long id; @OneToMany( mappedBy = “post” ) private List<Comment> comments= new ArrayList<>(); Comment entity Entity @Table(name = “comment”) public class Comment{ @Id private Long id; @ManyToOne @JoinColumn(name = “post_id”) private Post post;…

Details

How to upload a image to firebase

How do I restructure my code to go from “atappspot.com/”).child(“profileImage.jpg”).child(user.uid)”, which translates to a path of appspot.com/profileimage.jpg/Y789i90k0d0ifunb with that last part being the uid. To appspot.com/Y789i90k0d0ifunb/profileimage.jpg so that I can view my image in firebase storage? let StorageRef = Storage.storage().reference(forURL: “gs://tunnel-vision-458d6.appspot.com/”).child(“profileImage.jpg”).child(user.uid)

Details