spring data jpa - JPA: do i have to fetch all OneToMany relation list in order to add new relation -
lets have entity , has list of b mark onetomany. have fetch of b items in order add new b item list has?
example:
@entity public class { @id long id; @onetomany list<b> bs; } do have fetch of a.bs in order add new item bs ?
thanks
alon
edit few more questions:
@german: interesting! few questions
what if join between , b table c? same behavior?
why list make troubles?
what can use instead of list? set?
if persist overwrite links b?
what if link manytomany (using table)
you have add b a's bs list. happens though provider specific. providers eclipselink can avoid fetching list operations on lazy loaded lists when change tracking enabled
Comments
Post a Comment