annotation to filter results of a @OneToMany association

前端 未结 4 566
忘掉有多难
忘掉有多难 2020-11-27 07:10

I have parent/child relationship between two tables, and the corresponding mapping in my Java classes. The tables roughly look like that:

A (ref number, stuf         


        
4条回答
  •  温柔的废话
    2020-11-27 07:25

    with JPA 1 you can use the provided solution but change unwrap to getDelegate to be like that

    Session session = (Session)entityManager.getDelegate();
    

    and it's going to work.

提交回复
热议问题