Executing the following restrictions runs into following error
Message: java.lang.String cannot be cast to java.lang.Integer
if (suburbid > 0) {
criteria.add(Restrictions.ilike("suburb.id", suburbid));
}
Executing the following restrictions runs into following error
Message: java.lang.String cannot be cast to java.lang.Integer
if (suburbid > 0) {
criteria.add(Restrictions.ilike("suburb.id", suburbid));
}
Change
criteria.add(Restrictions.ilike("address.subrub.id", suburbid));
to
criteria.add(Restrictions.ilike("suburb.id", suburbid));
UPDATE
Also try to change
.createAlias("development.address.suburb", "suburb");
to
.createAlias("devAddress.suburb", "suburb");