MentaTutorials

Compare Revisions

Ignore whitespace Rev 53 → Rev 52

/MentaRefAppWithService/trunk/src/main/java/org/menta/AppManager.java
1,6 → 1,5
package org.menta;
 
import java.io.IOException;
import java.sql.Connection;
 
import org.menta.action.LoginAction;
10,7 → 9,6
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;
28,8 → 26,6
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 {
101,20 → 97,11
.field("password", DBTypes.STRING)
.field("email", DBTypes.STRING)
.field("languageId", "language_id", DBTypes.INTEGER)
.field("groupId", "group_id", DBTypes.INTEGER)
.field("sexo","sexo", DBTypes.ENUMID.from(Sexo.class));
.field("groupId", "group_id", DBTypes.INTEGER);
}
@Override
public void loadLists() {
try {
ListManager.addList( new BaseListData("sexo", BaseListData.ORDER_BY_ID) );
} catch (IOException e) {
e.printStackTrace();
}
addLocalizedLists("groups", "languages");
}