﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-&lt;div align="center"&gt;花看半开，酒饮微醉&lt;/div&gt;-最新评论</title><link>http://www.blogjava.net/knowhow/CommentsRSS.aspx</link><description>&lt;style&gt;
.header {
	height:0px;
}
&lt;/style&gt;</description><language>zh-cn</language><pubDate>Sun, 21 Oct 2007 14:16:17 GMT</pubDate><lastBuildDate>Sun, 21 Oct 2007 14:16:17 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: Hibernate映射自定义数据类型[未登录]</title><link>http://www.blogjava.net/knowhow/archive/2007/08/27/55774.html#140092</link><dc:creator>哈哈</dc:creator><author>哈哈</author><pubDate>Mon, 27 Aug 2007 10:56:00 GMT</pubDate><guid>http://www.blogjava.net/knowhow/archive/2007/08/27/55774.html#140092</guid><description><![CDATA[Could not determine type for: entity.EMailList, for columns: [org.hibernate.mapping.Column(email)<br><br>为什么老是报这个错误<img src ="http://www.blogjava.net/knowhow/aggbug/140092.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/knowhow/" target="_blank">哈哈</a> 2007-08-27 18:56 <a href="http://www.blogjava.net/knowhow/archive/2007/08/27/55774.html#140092#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Hibernate复合主键的处理(一)</title><link>http://www.blogjava.net/knowhow/archive/2006/10/22/55784.html#76664</link><dc:creator>hibernate初学者</dc:creator><author>hibernate初学者</author><pubDate>Sun, 22 Oct 2006 13:51:00 GMT</pubDate><guid>http://www.blogjava.net/knowhow/archive/2006/10/22/55784.html#76664</guid><description><![CDATA[你好!<br>我的代码如下:<br>User.java<br>...<br><br>User.hbm.xml<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br> &lt;!DOCTYPE hibernate-mapping<br>     PUBLIC &quot;-//Hibernate/Hibernate Mapping DTD 3.0//EN&quot;<br>     &quot;<a target="_new" href="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot;&gt;">http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot;&gt;</a><br> &lt;hibernate-mapping&gt;<br>&lt;class name=&quot;onlyfun.caterpillar.user&quot; table=&quot;user&quot; catalog=&quot;sample&quot;&gt;<br><br>         &lt;composite-id&gt;<br>            &lt;key-property name=&quot;name&quot;<br>                           column=&quot;name&quot;<br>                           type=&quot;java.lang.String&quot;/&gt;<br>            &lt;key-property name=&quot;phone&quot;<br>                           column=&quot;phone&quot;<br>                           type=&quot;java.lang.String&quot;/&gt;<br>        &lt;/composite-id&gt;<br>        &lt;property name=&quot;age&quot; column=&quot;age&quot;       type=&quot;java.lang.Integer&quot;/&gt;<br>        &lt;/class&gt; <br><br> &lt;/hibernate-mapping&gt;<br><br>HibernateTest.java <br>...<br><br>build.xml:<br>&lt;project name=&quot;JNameIt&quot; default=&quot;all&quot;&gt;<br> &lt;target name=&quot;setProperties&quot; description=&quot;setup the common properties&quot;&gt;<br>        &lt;property name=&quot;src.dir&quot; value=&quot;src&quot;/&gt;<br>        &lt;property name=&quot;images.dir&quot; value=&quot;images&quot;/&gt;<br>        &lt;property name=&quot;classes.dir&quot; value=&quot;classes&quot;/&gt;<br>        &lt;property name=&quot;lib.dir&quot; value=&quot;lib&quot;/&gt;<br>    &lt;/target&gt;<br><br>&lt;path id=&quot;1&quot;&gt;<br>    &lt;fileset dir=&quot;lib&quot;&gt;<br>        &lt;include name=&quot;**/*.jar&quot;/&gt;<br>    &lt;/fileset&gt;<br>&lt;/path&gt;<br><br>&lt;path id=&quot;class.path&quot;&gt;<br>        &lt;!-- Include our own classes, of course --&gt;<br>        &lt;pathelement location=&quot;${classes.dir}&quot; /&gt;<br>        &lt;!-- Include jars in the project library directory --&gt;<br>        &lt;fileset dir=&quot;lib&quot;&gt;<br>          &lt;include name=&quot;*.jar&quot;/&gt;<br>        &lt;/fileset&gt;<br>        &lt;pathelement path =&quot;${classpath}&quot;/&gt;<br><br>    &lt;/path&gt;<br><br>&lt;taskdef name=&quot;schemaexport&quot;<br>     classname=&quot;org.hibernate.tool.hbm2ddl.SchemaExportTask&quot;<br>     classpathref=&quot;class.path&quot;/&gt;<br><br> &lt;schemaexport<br>     properties=&quot;classes/hibernate.properties&quot;<br>     quiet=&quot;no&quot;<br>     text=&quot;no&quot;<br>     drop=&quot;no&quot;<br>     delimiter=&quot;;&quot;<br>     output=&quot;/schema-export.sql&quot;&gt;<br>     &lt;fileset dir=&quot;images&quot;&gt;<br>         &lt;include name=&quot;*.hbm.xml&quot;/&gt;<br>     &lt;/fileset&gt;<br> &lt;/schemaexport&gt;<br><br><br>&lt;target name=&quot;clean&quot; depends=&quot;setProperties&quot; description=&quot;clean up the previous built files or dirs&quot;&gt;<br>        &lt;delete dir=&quot;${classes.dir}&quot;/&gt;<br>        &lt;delete file=&quot;${jar.file}&quot;/&gt;<br>    &lt;/target&gt;<br><br>&lt;target name=&quot;prepareDir&quot; depends=&quot;setProperties&quot; description=&quot;prepare necessary dirs&quot;&gt;<br>        &lt;mkdir dir=&quot;${classes.dir}&quot;/&gt;<br>        &lt;mkdir dir=&quot;${lib.dir}&quot;/&gt;<br>&lt;!-- <br>        &lt;copy todir=&quot;${classes.dir}/images&quot;&gt;<br>            &lt;fileset dir=&quot;${images.dir}&quot;/&gt;<br>        &lt;/copy&gt;<br>--&gt;<br>    &lt;/target&gt;<br><br> &lt;target name=&quot;compile&quot; depends=&quot;prepareDir&quot; description=&quot;compile the source files&quot;&gt;<br>        &lt;javac srcdir=&quot;./src&quot; destdir=&quot;${classes.dir}&quot;<br>        classpathref=&quot;1&quot;/&gt;<br> &lt;copy todir=&quot;${classes.dir}/onlyfun/caterpillar&quot;&gt;<br>            &lt;fileset dir=&quot;${images.dir}&quot;/&gt;<br>        &lt;/copy&gt;   <br>    &lt;/target&gt;<br><br>&lt;target name=&quot;run&quot; depends=&quot;compile&quot;&gt;<br><br>    &lt;java fork=&quot;true&quot; classname=&quot;onlyfun.caterpillar.HibernateTest&quot; classpathref=&quot;1&quot;&gt;<br>&lt;classpath path=&quot;${classes.dir}&quot;/&gt;<br>&lt;/java&gt;<br>&lt;/target&gt;<br> <br>&lt;target name=&quot;all&quot; depends=&quot;clean&quot; description=&quot;perform all targets&quot;/&gt;<br>&lt;/project&gt;<br><br>User.java,hibernate.java放在WEB-INF/SRC 下,User.hbm.xml放在WEB-INF/images下,build.xml放在WEB-INF,<br>程序结构和你基本一样,为什么用ant run 时出现:<br>D:\Apache Software Foundation\Tomcat 5.5\webapps\HibernateTest\WEB-INF\build.xml<br>:35: Schema text failed: component class not found: onlyfun.caterpillar.User的错误!好长时间都没解决,网上也找不到类似的错误!<br>谢谢你帮忙看一下!<img src ="http://www.blogjava.net/knowhow/aggbug/76664.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/knowhow/" target="_blank">hibernate初学者</a> 2006-10-22 21:51 <a href="http://www.blogjava.net/knowhow/archive/2006/10/22/55784.html#76664#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Hibernate映射自定义数据类型</title><link>http://www.blogjava.net/knowhow/archive/2006/08/14/55774.html#63486</link><dc:creator>kocr</dc:creator><author>kocr</author><pubDate>Mon, 14 Aug 2006 07:16:00 GMT</pubDate><guid>http://www.blogjava.net/knowhow/archive/2006/08/14/55774.html#63486</guid><description><![CDATA[其实作者应该在文中给出数据库的响应表结构和关联关系，这样给人一目了然和清晰的感觉。个人愚见。<img src ="http://www.blogjava.net/knowhow/aggbug/63486.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/knowhow/" target="_blank">kocr</a> 2006-08-14 15:16 <a href="http://www.blogjava.net/knowhow/archive/2006/08/14/55774.html#63486#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Hibernate复合主键的处理 (二) </title><link>http://www.blogjava.net/knowhow/archive/2006/08/02/55828.html#61370</link><dc:creator>dt1</dc:creator><author>dt1</author><pubDate>Wed, 02 Aug 2006 10:08:00 GMT</pubDate><guid>http://www.blogjava.net/knowhow/archive/2006/08/02/55828.html#61370</guid><description><![CDATA[请问如果有类要关联包含复合主键的类该如何定义关联关系？<img src ="http://www.blogjava.net/knowhow/aggbug/61370.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/knowhow/" target="_blank">dt1</a> 2006-08-02 18:08 <a href="http://www.blogjava.net/knowhow/archive/2006/08/02/55828.html#61370#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>