glassfish - Netbeans Java Enterprise Web Application: cannot find symbol class Table -
so followed tutorial video (source) create java enterprise web application , have ran problem. pretty first time working stuff me clueless regarding how solve this.
when trying run project error saying "the module has not been deployed. see server log details." after time trying find out wrong figured error have in "student.java"-class. says "cannot find symbol classtable. create subclass create test class". may problem here? i'm not sure code relevant complete beginner this, files exact copies of source code-wise. here student.java:
package com.joseph.model; import java.io.serializable; import javax.persistence.column; import javax.persistence.entity; import javax.persistence.generatedvalue; import javax.persistence.generationtype; import javax.persistence.id; import javax.persistence.namedqueries; import javax.persistence.namedquery; import javax.persistence.table; /** * * @author joseph */ @entity @table @namedqueries({@namedquery(name="student.getall",query="select e student e")}) public class student implements serializable{ @id @generatedvalue(strategy=generationtype.auto) @column private int studentid; @column private string firstname; @column private string lastname; @column private int yearlevel; public int getstudentid() { return studentid; } public void setstudentid(int studentid) { this.studentid = studentid; } public string getfirstname() { return firstname; } public void setfirstname(string firstname) { this.firstname = firstname; } public string getlastname() { return lastname; } public void setlastname(string lastname) { this.lastname = lastname; } public int getyearlevel() { return yearlevel; } public void setyearlevel(int yearlevel) { this.yearlevel = yearlevel; } public student(int studentid, string firstname, string lastname, int yearlevel) { this.studentid = studentid; this.firstname = firstname; this.lastname = lastname; this.yearlevel = yearlevel; } public student(){} }
Comments
Post a Comment