Hi all I need the cutom coercion from String to Long, which will translate empty strings to null Long value. I tried add contribution to my AppModule, but with no success - coercion to Long is still processed by old manner. Is there any way to do it?
Thans. Here is part of my AppModule: ============================ public static void contributeTypeCoercer(Configuration<CoercionTuple> configuration) { Coercion<String, Long> cc = new Coercion<String, Long>() { public Long coerce(String input) { if(input == null || input.length() == 0) { return null; } return new Long(input); } }; CoercionTuple<String, Long> tuple = new CoercionTuple<String, Long>(String.class, Long.class, cc); configuration.add(tuple); } ============================