Ignore:
Timestamp:
Oct 21, 2011, 3:37:55 PM (13 years ago)
Author:
fmguler
Message:

Fixed typed criteria method parameters from Criteria.eq(String attribute, String value) to eq(String attribute, Object value). They accept values of any type, e.g. int, string, date.

Turned off debug messages by default. They can be enabled by setting Ven.setDebug(true).

Updated to Netbeans 7.0.1, which updated build-impl.xml, nothing to do with functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fmgVen/src/com/fmguler/ven/Ven.java

    r30 r32  
    3838    private QueryGenerator generator; 
    3939    private QueryMapper mapper; 
    40     private boolean debug = true; 
     40    private boolean debug = false; 
    4141 
    4242    public Ven() { 
     
    196196        return this; 
    197197    } 
     198 
     199    /** 
     200     * Set debug mode, true will log all debug messages to System.out 
     201     * <p> 
     202     * Note: Use debug mode to detect problems only. It is not a general purpose logging mode. 
     203     * @param debug set true to enable debug mode 
     204     */ 
     205    public void setDebug(boolean debug) { 
     206        this.debug = debug; 
     207        generator.setDebug(debug); 
     208        mapper.setDebug(debug); 
     209    } 
    198210} 
Note: See TracChangeset for help on using the changeset viewer.