此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【Andy_Fay】截止到2008-07-06 12:57:30的历史汇总数据(不包括此帖):
发帖的总数量:5                        发帖的总分数:130                      
结贴的总数量:3                        结贴的总分数:10                       
无满意结贴数:1                        无满意结贴分:100                      
未结的帖子数:2                        未结的总分数:120                      
结贴的百分比:60.00 %               结分的百分比:7.69  %                  
无满意结贴率:33.33 %               无满意结分率:1000.00%                  
楼主加油

解决方案 »

  1.   

    java.lang.NoSuchFieldException: directoryOwner配置文件哪里写错了,找不到这个属性吧,注意拼写错误
      

  2.   

    mycompass.cpm.xml:<compass-core-mapping package="org.awc.demo.entity">
    <class name="Book" alias="${mycompass.book}" root="false">
    <id name="id">
    <meta-data>${mycompass.id}</meta-data>
    </id>
    <property name="bookname">
    <meta-data>${mycompass.bookname}</meta-data>
    </property>
    <property name="author">
    <meta-data>${mycompass.author}</meta-data>
    </property>
    <property name="re">
    <meta-data>${mycompass.re}</meta-data>
    </property>
    </class></compass-core-mapping>
    mycompass.cmd.xml:<compass-core-meta-data>
    <meta-data-group id="mycompass" displayName="mycompass Meta Data"> <description>mycompass Meta Data</description>
    <uri>http://compass/sample/mycompass</uri> <alias id="book" displayName="Book">
    <description>Book alias</description>
    <uri>http://compass/sample/mycompass/alias/book</uri>
    <name>book</name>
    </alias> <meta-data id="bookname" displayName="Bookname">
    <description>Type of an entity in the system</description>
    <uri>http://compass/sample/mycompass/bookname</uri>
    <name>bookname</name>
    </meta-data>

    <meta-data id="id" displayName="Id">
    <description>ID</description>
    <uri>http://compass/sample/mycompass/id</uri>
    <name>id</name>
    </meta-data>

    <meta-data id="author" displayName="Author">
    <description>The author</description>
    <uri>http://compass/sample/mycompass/author</uri>
    <name >author</name>
    </meta-data>

    <meta-data id="re" displayName="Re">
    <description>The author</description>
    <uri>http://compass/sample/mycompass/re</uri>
    <name>re</name>
    </meta-data>
    </meta-data-group>
    </compass-core-meta-data>
    Book.java:package org.awc.demo.entity;/**
     * 
     * @author AndyFay
     * @date Jun 29, 2008
     * @hibernate.class table="tbl_Book"
     */
    public class Book {
    private Integer id; private String bookname; private String author; private Integer pagecount; private String re; /**
     * @return 返回the author 的值
     * @hibernate.property 
     */
    public String getAuthor() {
    return author;
    } /**
     * @return 返回the bookname 的值
     * @hibernate.property
     */
    public String getBookname() {
    return bookname;
    } /**
     * @return 返回the id 的值
     * @hibernate.id generator-class = "native" unsaved-value = "null"
     */
    public Integer getId() {
    return id;
    } /**
     * @return 返回the pagecount 的值
     * @hibernate.property
     */
    public Integer getPagecount() {
    return pagecount;
    } /**
     * @return 返回the re 的值
     * @hibernate.property
     */
    public String getRe() {
    return re;
    } /**
     * 设置 author 的值
     * 
     * @param author
     *            the author to set
     */
    public void setAuthor(String author) {
    this.author = author;
    } /**
     * 设置 bookname 的值
     * 
     * @param bookname
     *            the bookname to set
     */
    public void setBookname(String bookname) {
    this.bookname = bookname;
    } /**
     * 设置 id 的值
     * 
     * @param id
     *            the id to set
     */
    public void setId(Integer id) {
    this.id = id;
    } /**
     * 设置 pagecount 的值
     * 
     * @param pagecount
     *            the pagecount to set
     */
    public void setPagecount(Integer pagecount) {
    this.pagecount = pagecount;
    } /**
     * 设置 re 的值
     * 
     * @param re
     *            the re to set
     */
    public void setRe(String re) {
    this.re = re;
    }
    }以上是相关代码,好像没有拼写之类的错误。。因为第一次,所以很多地方都是copy的,甚至于不知道为什么这样写。