/**
 * 
 */
package net.wyun.wcrs.model;

/**
 * @author Xuecheng
 * when it is mapped to mysql database
 * it is 0--MALE and 1--FEMAL
 *
 */
public enum Gender {
     MALE, FEMALE;
}

@@ -175,10 +175,94 @@
 FEMALE;%0A
+%09%0A%09public static Gender gender(int i)%7B%0A%09%09return i==0?Gender.FEMALE:Gender.MALE;%0A%09 %7D%0A
 %7D%0A

add method to get Gender by int value.