def criteria = new DetachedCriteria(ContractDetails).build {
gte('startTime', startTime)
}
/ContractDetailsService.groovy: 141: [Static type checking] - Cannot find matching method ContractDetailsService#eq(java.lang.String, ContractDetails). Please check if the declared type is right and if the method exists.
@ line 141, column 17.
gte('startTime', startTime)
Same code compiles when createCriteria instead of DetachedCriteria is used.
Wondering if this is some expected behaviour?