MentaTutorials

Compare Revisions

Regard whitespace Rev 52 → Rev 53

/MentaRefAppWithService/trunk/src/main/java/org/menta/AppManager.java
1,5 → 1,6
package org.menta;
 
import java.io.IOException;
import java.sql.Connection;
 
import org.menta.action.LoginAction;
9,6 → 10,7
import org.menta.model.Group;
import org.menta.model.Language;
import org.menta.model.User;
import org.menta.model.User.Sexo;
import org.menta.service.UserService;
import org.menta.service.impl.UserServiceImpl;
import org.mentabean.BeanSession;
26,6 → 28,8
import org.mentawai.filter.MentaContainerFilter;
import org.mentawai.filter.TransactionFilter;
import org.mentawai.filter.ValidationFilter;
import org.mentawai.list.BaseListData;
import org.mentawai.list.ListManager;
import org.mentawai.mail.Email;
 
public class AppManager extends ApplicationManager {
97,11 → 101,20
.field("password", DBTypes.STRING)
.field("email", DBTypes.STRING)
.field("languageId", "language_id", DBTypes.INTEGER)
.field("groupId", "group_id", DBTypes.INTEGER);
.field("groupId", "group_id", DBTypes.INTEGER)
.field("sexo","sexo", DBTypes.ENUMID.from(Sexo.class));
}
@Override
public void loadLists() {
try {
ListManager.addList( new BaseListData("sexo", BaseListData.ORDER_BY_ID) );
} catch (IOException e) {
e.printStackTrace();
}
addLocalizedLists("groups", "languages");
}