yanghuw
yanghuw · 共 4 篇文章
Hibernate Search牛刀小试
前几天看到Hibernate与Lucene的整合框架Hiberate Search3.0.0.GA版出来了,昨天试这写了一个Demo,感觉用起来的确很方便的,贴出来与大家分享一下。 1、创建POJO java 代码 @Entity @Table(name = "employee", catalog = "hise", uniqueConstraints = {}) @Indexed(index = "indexes/employee") public class Employee implements java.io.Serializable { private static final l…
2007-09-30 14:00 · 评论(4)
在Web Service中调用继承对象
与开发Web Service一样,有WSDL优先和代码优先两种方式。 首先我们介绍WSDL优先的方式,采用这种方式我们先在XML Schema中定义一个基类的complexType ,然后使用扩展标签声明另一个 complexType 元素来扩展。 <complexType name="Product"> <sequence> <element name="name" type="string"/> <element name="description" type="string"/> </sequence> </complexType> <complexType name="Product…
2007-06-10 09:28 · 评论(0)
Spring中使用FreeMaker或Vilocity模板发送邮件
本文以用户注册后为用户发送一封邮件为例子,讲述如何在Spring中使用FreeMaker或Vilocity发送邮件。 Spring配置文件: xml 代码 <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="smtp.163.com"/> <property name="username" value="test"/> <property name="password" value="123456"/> <propert…
2006-12-25 11:39 · 评论(4)
IBatisNet中将DateTime字段保存为null
public class User { private string _user_id; private string _user_name; private string _birthday; public string user_id { get { return this._user_id; } set { this._user_id = value; } public string user_name { get { return this._user_name; } set { this._user_name = value; } } public string birthday …
2006-04-20 16:47 · 评论(0)