Abdel_eid -5 Junior Poster in Training

hello all,
i am using javassist to create a class during run time i actually had know how to make every thing in the class except i need to know how to write annotations before the class and fields this is my class i need to create (i am using google app engine server)

@PersistenceCapable
public class Student {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String fname;

    @Persistent
    private String lname;

    public Student(String fname , String lname) {
        this.fname = fname;
		this.lname = lname;
    }

    public Key getKey() {
        return key;
    }

    public String getFname() {
        return fname;
    }

    public String getLname() {
        return lname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

}//end of class
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.