@@ -0,0 +1,1859 @@
+package com.mysema.query.sql;%0A%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0A%0Aimport com.google.common.collect.Lists;%0Aimport com.mysema.query.types.Expression;%0Aimport com.mysema.query.types.path.DateTimePath;%0A%0Apublic class DateArithmeticTest %7B%0A%0A    private String serialize(Expression%3C?%3E expr, SQLTemplates templates) %7B%0A        SQLSerializer serializer = new SQLSerializer(new Configuration(templates));%0A        serializer.handle(expr);%0A        return serializer.toString();%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        List%3CSQLTemplates%3E list = Lists.newArrayList();%0A        list.add(new CUBRIDTemplates());%0A        list.add(new DerbyTemplates());%0A        list.add(new H2Templates());%0A        list.add(new HSQLDBTemplates());%0A        list.add(new MySQLTemplates());%0A        list.add(new OracleTemplates());%0A        list.add(new PostgresTemplates());%0A        list.add(new SQLiteTemplates());%0A        list.add(new SQLServerTemplates());%0A        list.add(new SQLServer2005Templates());%0A        list.add(new SQLServer2012Templates());%0A        list.add(new TeradataTemplates());%0A%0A        List%3CExpression%3C?%3E%3E exprs = Lists.newArrayList();%0A        DateTimePath%3CDate%3E path = new DateTimePath%3CDate%3E(Date.class, %22date%22);%0A        exprs.add(SQLExpressions.addYears(path, 2));%0A        exprs.add(SQLExpressions.addMonths(path, 2));%0A        exprs.add(SQLExpressions.addDays(path, 2));%0A        exprs.add(SQLExpressions.addHours(path, 2));%0A        exprs.add(SQLExpressions.addMinutes(path, 2));%0A        exprs.add(SQLExpressions.addSeconds(path, 2));%0A%0A        for (SQLTemplates templates : list) %7B%0A            System.out.println(templates.getClass().getSimpleName());%0A            for (Expression%3C?%3E expr : exprs) %7B%0A                System.err.println(serialize(expr, templates));%0A            %7D%0A            System.out.println();%0A%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test