package com.keijack.database.hibernate.internal;

import java.util.List;

import com.keijack.database.hibernate.stereotype.QueryCondition;

/**
 * 
 * @author Keijack
 * 
 */
public class NullQueryConditionAnnoHqlBuilder extends
	QueryConditionAnnoHqlBuilder {

    /**
     * {@inheritDoc}
     */
    @Override
    public void generateHql(QueryCondition conditionAnno, Object param,
	    StringBuilder where, List<Object> params) {
	String notString = "";
	if (!(Boolean) param) {
	    notString = "not ";
	}
	where.append(" and ").append(super.getAlias()).append(".")
		.append(conditionAnno.field()).append(" is ").append(notString)
		.append("null");
    }
}
@@ -448,13 +448,8 @@
 ring
- = %22%22
 ;%0A%09i
@@ -496,16 +496,47 @@
 %22not %22;%0A
+%09%7D else %7B%0A%09    notString = %22%22;%0A
 %09%7D%0A%09wher

format some codes.