mybatis « SQL « Java Database Q&A





1. Persist collection in object with MyBatis    stackoverflow.com

I have POJO classes:

class Ticket {
    private int id;
    private double cost;
    private Date time;
    private List<Place> places;

  ...

2. how to configure log4j for Mybatis to print my SQL    stackoverflow.com

My project is set up with SpringMVC+Mybatis+EXTJS4. This is my configuration:

# Rules reminder:
# DEBUG < INFO < WARN < ERROR < FATAL

# Global logging configuration
log4j.rootLogger=DEBUG,stdout


log4j.logger.org.apache.ibatis=DEBUG,stdout
log4j.logger.java.sql=DEBUG,stdout 

#log4j.additivity.com.ibatis = false
#log4j.additivity.java.sql = false

## Console ...