Jun 17

来自TSS上的消息: Sun has announced it is joining the OpenAJAX Alliance and the Dojo Foundation. Sun says it will actively participate in these two communities to help drive open standards for AJAX programming and increase interoperability across AJAX technologies. As part of the OpenAJAX Alliance, Sun will collaborate with over 30 other member companies and organizations to identify and consolidate best practices, reach a consensus on programming models around a reference implementation for tools interoperability and...

[more..]

Jun 14

Templates based mailers Let's define an interface for mailers based on a template engine (such as Velocity and FreeMarker). import java.util.Map; import java.util.List; public interface TemplateMailer { /** * Send a mail with both a text and a HTML version. * @param email the email address where to send the email * @param context a {@link Map} of objects to expose to the template engine * @param templatePrefix the prefix of the templates to use */ void mail(...

[more..]

May 30
package  com.javaeye.common.hibernate; import  java.lang.reflect.Field; import  java.sql.SQLException; import  java.util.ArrayList; import  java.util.List; import  java.util.regex.Matcher; import  java.util.regex.Pattern; import  org.apache.commons.lang.StringUtils; import  org.apache.commons.logging.Log; import  org.apache.commons.logging.LogFactory; import  org.hibernate.Criteria; import  org.hibernate.HibernateExcepti...

[more..]

Mar 29

[more..]

Mar 23

[more..]

Mar 16

[more..]