Yes. I will attach my .java file here.

It's in /opt/dev/tools/PersonApp/src/dao/org/appfuse/model

Vanessa Pacheco
Programmer
Bowman Systems L.L.C
318.213.8780x307 
 
======================================
IMPORTANT WARNING: This message is intended for the use of the person or
entity to which it is addressed and may contain information that is
privileged and confidential, the disclosure of which is governed by
applicable law. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this information is strictly prohibited. If you
have received this message in error, please notify the sender immediately
and arrange for the return or destruction of these documents. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: Thursday, October 04, 2007 2:44 PM
To: [email protected]
Subject: Re: [appfuse-user] PersonForm.java not being generated

Do you have the @hibernate.class in the class's javadoc as well? Are
you extending BaseObject? Do you have it in your project's "model"
directory?

Matt

On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I copied that line from User.java and added it to my Person.java class
>
> I also tried used org.appfuse.webapp.form.BaseForm
>
> I tried everything possible. Anyone else have the same problem. Any tips
> on how to troubleshoot.
>
> What am I typically supposed to see as an output when I run ant.
>
> Thanks,
> Vanessa Pacheco
> Programmer
> Bowman Systems L.L.C
> 318.213.8780x307
>
> ======================================
> IMPORTANT WARNING: This message is intended for the use of the person or
> entity to which it is addressed and may contain information that is
> privileged and confidential, the disclosure of which is governed by
> applicable law. If the reader of this message is not the intended
> recipient, or the employee or agent responsible to deliver it to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this information is strictly prohibited. If
you
> have received this message in error, please notify the sender
immediately
> and arrange for the return or destruction of these documents.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
> Raible
> Sent: Thursday, October 04, 2007 2:26 PM
> To: [email protected]
> Subject: Re: [appfuse-user] PersonForm.java not being generated
>
> Make sure you have an @struts-form tag on your Person.java class.
>
> Here's an example:
>
> http://tinyurl.com/ypq3ax
>
> Matt
>
> On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I am using Appfuse 1.9.x + Struts. I am going through the tutorial and
> have
> > successfully finished the 1st 2 parts. Now it's time to create the
> Struts
> > Action form etc etc.
> >
> >
> >
> > I added the Xdoclet tag and ran "ant gen-forms". Build is successful
but
> it
> > really doesn't do much.
> >
> >
> >
> > Here's the output from running ant
> >
> >
> >
> > [EMAIL PROTECTED]:/opt/dev/tools/PersonApp$ ant gen-forms
> >  Buildfile: build.xml
> >
> >  init:
> >
> >  prepare:
> >      [echo] Preparing target directory
> > '/opt/dev/tools/PersonApp/build/PersonApp'
> >
> >  gen-forms:
> >
> >
> >
> > BUILD SUCCESSFUL
> >
> >
> >
> > Vanessa Pacheco
> >  Programmer
> >  Bowman Systems L.L.C
> >  318.213.8780x307
> >
> >
> >
> > ======================================
> >
> > IMPORTANT WARNING: This message is intended for the use of the person
or
> > entity to which it is addressed and may contain information that is
> > privileged and confidential, the disclosure of which is governed by
> > applicable law. If the reader of this message is not the intended
> recipient,
> > or the employee or agent responsible to deliver it to the intended
> > recipient, you are hereby notified that any dissemination,
distribution
> or
> > copying of this information is strictly prohibited. If you have
received
> > this message in error, please notify the sender immediately and
arrange
> for
> > the return or destruction of these documents.
> >
> >
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

/*
 * Person.java
 *
 * Created on October 1, 2007, 10:51 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.appfuse.model;

//import org.appfuse.model.BaseObject;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * Person Class
 *
 * This class is used to generate the hibernate mapping file and the Struts Action Form
 *
 * <p><a href="Person.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:[EMAIL PROTECTED]"> Vanessa Pacheco </a>
 *
 * @hibernate.class table="person"
 * @struts.form include-all="true" extends="BaseForm"
 */
public class Person extends BaseObject {
    
    private Long id;
    private String firstName;
    private String lastName;
    
    /** Creates a new instance of Person */
    /*public Person() {
    }*/
    
    /****************************************/
    /*********GETTERS AND SETTERS************/
    /****************************************/
    
    /**
     * @hibernate.id name="id" column="id" not-null="true" generator-class="native"
     * @return Long
     */
    public Long getId() {
        return this.id;
    }
    
    /**
     * @hibernate.property name="firstName" column="firstName" not-null="true" length="50"
     *
     * @return String
     */
    public String getFName() {
        return this.firstName;
    }
    
    /**
     * @hibernate.property name="lastName" column="lastName" not-null="true" length="50"
     *
     * @return String
     */
    public String getLName() {
        return this.lastName;
    }
    
    
    /**
     * Set "id"
     */
    public void setId(Long id) {
        this.id = id;
    }
    
    /**
     * set "firstName"
     */
    public void setFName (String fname) {
        this.firstName = fname;
    }
    
    
    /**
     * set "lastName"
     */
    public void setLName (String lname) {
        this.lastName = lname;
    }
    
    /***************************************/
    /******** OVERRIDE BASEOBJECT METHODS***/
    /***************************************/
    public boolean equals(Object obj) {
        if (!(obj instanceof Person)) {
            return false;
        }
        
        Person rhs = (Person) obj;
        return new EqualsBuilder()
                    .append(this.id, rhs.id)
                    .append(this.firstName, rhs.firstName)
                    .append(this.firstName, rhs.firstName)
                    .isEquals();
        
    }
    
    public int hashCode() {
     // you pick a hard-coded, randomly chosen, non-zero, odd number
     // ideally different for each class
     return new HashCodeBuilder(810752, 318980)
                .append(this.id)
                .append(this.firstName)
                .append(this.lastName)
                .toHashCode();
    }
    
    public String toString() {
        return "Person {" +
                "id=" + this.id +
                ", firstName=" + this.firstName + 
                ", lastName=" + this.lastName + 
                "}";
    }
    
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to