Changeset 37 for trunk/fmgVen/test


Ignore:
Timestamp:
Mar 20, 2012, 2:40:52 PM (13 years ago)
Author:
fmguler
Message:

Refs #7 - Implemented orderAsc and orderDesc methods of Criteria. Have been testing these for a while, no problem so far. Added BigDecimal to db classes (Numeric db type). If the column name is "order" it is escaped while insert/update. (This should be done for all db keywords). Fixed missing mapping of one to many assc. (lists) of many to one (object) assc (obj.obj.list).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fmgVen/test/com/fmguler/ven/sample/Sample.java

    r30 r37  
    168168                .like("SomeDomainObject.anotherDomainObjects.name", "a%") //attribute like value 
    169169                .eq("SomeDomainObject.name", "sdo1") //attribute equals value 
    170                 .and(); //connects previous criteria with and 
     170                .and() //connects previous criteria with and 
     171                .orderDesc("SomeDomainObject.anotherDomainObjects.name"); //order by some attribute 
    171172 
    172173        //list with includes and criteria 
Note: See TracChangeset for help on using the changeset viewer.