class IntegerToShortMapper implements TypeMapper<Integer, Short> {

    @Override
    public String getLabel() {
        return "Integer to Short";
    }

    @Override
    public Type getJavaType(Column column) {
        return Short.class;
    }

    @Override
    public Short toJavaType(Column column, Class<?> entityType, Integer value) {
        return value == null ? null : ((short) (int) value);
    }

    @Override
    public Integer toDatabaseType(Short value) {<FILL_FUNCTION_BODY>}
    
    @Override
    public Ordering getOrdering() {
        return Ordering.RETAIN;
    }    

}

        return value == null ? null : ((int) (short) value);
    
<no_super_class>