I have integrated the project found at
http://www.hibernate.org/97.html
into my system, and on the surface i love the functionality. i have two problems i was hoping someone here can help me with. the first is a compile error, here is the output
[javac] /hiberlog/DefaultLoggingEvent.java:37: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.HashSet
[javac] ((HashSet) throwableMessages).add(t);
[javac] ^
[javac] /hiberlog/HibernateAppender.java:77: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] buffer.add(loggingEvent);
[javac] ^
[javac] /hiberlog/HibernateUtil.java:37: warning: [unchecked] unchecked call to set(T) as a member of the raw type java.lang.ThreadLocal
[javac] session.set(s);
[javac] ^
[javac] /hiberlog/HibernateUtil.java:46: warning: [unchecked] unchecked call to set(T) as a member of the raw type java.lang.ThreadLocal
[javac] session.set(null);
[javac] ^
[javac] 4 warnings
i dont have time to play with it so i was hoping someone can let me know if they fixed it or not, im using java 5.
the second issue is more severe. my junit tests, when i have the logger off, takes 11 seconds to run. when i turn the logger on, it takes 60 seconds. this isn't good, i was wondering if anyone else encountered this problem and has a few tips on how to fix it. i can understand a small hit in performance but this one is a bit much.
thanks
willie