Oops, second try with correct email
Hello! You can use no ORM approach, as I do ;-) 1. All my db queries are in DAO class 2. for actual DB work I use Spring JDBC Templates http://static.springsource.org/spring/docs/3.0.x/reference/jdbc.html 3. for JDBC connection pooling I use The Best BoneCP connection pool: http://jolbox.com/ 4. all my application wired with Spring (sql queries text are in Spring XML, so it easy customizable) 5. I use http://slf4j.org as logging facade 6. I want to investigate http://www.mybatis.org/java.html (compare it with Spring JDBC Templates + my helper classes) ~ public interface IUserDao { List<User> getUsers (); void saveUser (User user); } public class UserDaoImpl extends SimpleJdbcDaoSupport implements IUserDao { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(RoutesDAO.class); private String sqlGetUsers; @Required public void setSqlGetUsers (@NotNull String sql) { sqlGetUsers = sql.trim(); } @Override public List<User> getUsers () { return getSimpleJdbcTemplate().query(sqlGetUsers, userMapper); } MyPage extends BorderPage... ... @Autowired IUserDao dao; .. table.setRowList(dao.getUsers()); ==== "Having a background in PHP myself I'd say that Java is heavily geared towards enterprise and you will find it "heavier" than the scripting environment of PHP." Having a background in Borland Delphi 1..2005 myself and many frinds of my with background in PHP I'd say that Java is amazing. If you use Java right and have all necessary tools and libraries http://www.jetbrains.com/idea/ instead of eclipse for example http://code.google.com/p/guava-libraries/ for cool one-liners bonecp for connection pooling Apache Click for cool web development freemarker (!!!!!!!) instead of Apache Velocity Spring framework (my love) JUnit and http://mockito.org/ (amazing mocking) etc ;-) -- Best regards, Andrew P.Fink e-mail/gtalk/jabber: [email protected] mob.: +7(915)405-4296
