Changeset 2684
- Timestamp:
- 03/08/10 17:19:28 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molgenis/3.3/src/org/molgenis/model/MolgenisModelValidator.java
r2677 r2684 372 372 * <ul> 373 373 * <li>Do unique field names refer to existing fields? 374 * <li>Is there only one auto numbercolumn?374 * <li>Is there a unique column? 375 375 * </ul> 376 376 * … … 412 412 "there should be only one auto column and it must be the primary key for entity '" + entityname 413 413 + "'"); 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 // } 421 422 } 422 423
Note: See TracChangeset
for help on using the changeset viewer.