ds.setUrl(jdbcUrl); ds.setUser(user); ds.setPassword(password);
ActiveRecordPlugin arp = new ActiveRecordPlugin(ds);
if (isLocal) {
arp.setShowSql(true);
}
arp.addMapping("module", Module.class).addMapping("topic", Topic.class).addMapping("post", Post.class);
arp.addMapping("reply", Reply.class).addMapping("user", User.class);
me.add(arp);
me.add(new EhCachePlugin());
}