OneToMany relationship is not working

前端 未结 5 437
Happy的楠姐
Happy的楠姐 2020-12-24 14:35

My Tables:

Product: id, name

Offer: id, value, product_id

Entities:

@Entity
@Table(name=\"product\"         


        
5条回答
  •  梦毁少年i
    2020-12-24 15:17

    Here's what I did

    // force load of the set.
    entity.getSecrets().isEmpty();
    System.out.println(entity.getSecrets());
    

提交回复
热议问题