Changeset 2684


Ignore:
Timestamp:
03/08/10 17:19:28 (2 years ago)
Author:
mswertz
Message:

Removed constraint that each entity needs to have autoid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molgenis/3.3/src/org/molgenis/model/MolgenisModelValidator.java

    r2677 r2684  
    372372         * <ul> 
    373373         * <li>Do unique field names refer to existing fields? 
    374          * <li>Is there only one auto number column? 
     374         * <li>Is there a unique column? 
    375375         * </ul> 
    376376         *  
     
    412412                                        "there should be only one auto column and it must be the primary key for entity '" + entityname 
    413413                                                        + "'"); 
    414  
    415                         if (!entity.isAbstract() && autocount < 1) 
    416                         { 
    417                                 throw new MolgenisModelException( 
    418                                                 "there should be one auto column for each root entity and it must be the primary key for entity '" 
    419                                                                 + entityname + "'"); 
    420                         } 
     414                         
     415//to strict, the unique field may be non-automatic 
     416//                      if (!entity.isAbstract() && autocount < 1) 
     417//                      { 
     418//                              throw new MolgenisModelException( 
     419//                                              "there should be one auto column for each root entity and it must be the primary key for entity '" 
     420//                                                              + entityname + "'"); 
     421//                      } 
    421422                } 
    422423 
Note: See TracChangeset for help on using the changeset viewer.