terrestris / shogun-legacy

⛔️ DEPRECATED, please use https://github.com/terrestris/shogun-core
Other
16 stars 16 forks source link

Avoid cartesian products in `getEntitesByStringFields`. #47

Closed marcjansen closed 10 years ago

marcjansen commented 10 years ago

The other generic DAO methods all have

criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);

to avoid cartesian products when fetching database entites. The method getEntitesByStringFields lacked that line.

Please review.

buehner commented 10 years ago

LGTM, thx @marcjansen