sosandstrom / mardao

Mardao is the Java Architect's Dao Generator, for Spring JDBC, AppEngine Datastore and Android SQLite
GNU General Public License v3.0
18 stars 13 forks source link

Generator methods with field type collections , it should create InFilter not equalFilter #20

Closed sophea closed 11 years ago

sophea commented 11 years ago

For example of One Domain DOffer has property Collection storeIds.

When I try to user dao.queryByStoreIds(Arrays.asList(storeId)), It does not find any stores at all.

dao.queryByStoreIds() implementation is creating equal filter , not IN filter.

sosandstrom commented 11 years ago

The intention is to pass a single item as parameter, i.e. a Long storeId. Then, the Equals filter makes sense. Will close this issue - wont fix.