Ibatis + Spring : log4j does not work

2008-12-23 Thread oci
Hello, I have a problem using log4j with ibatis. Log4j works well but i can't see the log for SQL requests and results. I think i need to add this line LogFactory.selectLog4JLogging(); but i don't know where i should add it. I am currently using spring framework and i don't know where i can put

Re: Ibatis + Spring : log4j does not work

2008-12-23 Thread oci
It has no effects :( Hereafter, my log4j.properties : # Global logging configuration log4j.rootLogger=INFO, stdout # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

Problem with Complex Property

2007-04-30 Thread oci
I have a problem while using complex properties. Here is my code : resultMap id=Utilisateur.map class=Utilisateur.classe result property=id column=id / result property=login column=login/ result property=password column=password/

Re: Problem with Complex Property

2007-04-30 Thread oci
In fact, idProfil refers to the field id in the table profil : table utilisateur: id login password ... idProfil table profilutilisateur : id profil droits idProfil refers to profilutilisateur.id I have tried what your solution and it works with this request : select