can me problem?
i got unidirectional onetomany relation , getting duplicates in result list.i'm using springdatajpa.
@jointable(name = "previoustherapies_drugs", joincolumns = {@joincolumn(name = "id")}, inversejoincolumns = { @joincolumn(name ="drug_id")}) private list<drug> drugs;
how can prevent these duplicates? , came from?
solved:
i solved it, problem fetchtype eager join on other table , produces duplicates.
now running lazy , works because there 2 different sql statements fired.
thx
Comments
Post a Comment