1 Reply Latest reply on Mar 10, 2008 6:09 AM by Sascha Hoffmann


    Sascha Hoffmann Newbie


      I have a problem with my EntityBean but i don't know why. I hapoe somebody can help me.

      Ouput in the JBoss-Console

      10:43:14,296 WARN [JDBCExceptionReporter] SQL Error: 904, SQLState: 42000
      10:43:14,296 ERROR [JDBCExceptionReporter] ORA-00904: Ungültiger Spaltenname
      My EntityBean "LOV_User.java"
      package tcejb;
      import javax.persistence.*;
       query="SELECT l FROM LOV_User l WHERE l.user = ?1 ")
      public class LOV_User implements java.io.Serializable {
       private static final long serialVersionUID = 1;
       private String user;
       private String user_name;
       private String user_password;
       private int admin_sign;
       private String status_sign;
       private String new_date;
       private String update_date;
       private String last_user;
       public String getUser() {return user;}
       public void setUser(String user) {this.user = user;}
       public String getUserName() {return user_name;}
       public void setUserName(String user_name) {this.user_name = user_name;}
       public String getUserPassword() {return user_password;}
       public void setUserPassword(String user_password) {this.user_password = user_password;}
       public int getAdminSign() {return admin_sign;}
       public void setAdminSign(int admin_sign) {this.admin_sign = admin_sign;}
       public String getStatusSign() {return status_sign;}
       public void setStatusSign(String status_sign) {this.status_sign = status_sign;}
       public String getNewDate() {return new_date;}
       public void setNewDate(String new_date) {this.new_date = new_date;}
       public String getUpdateDate() {return update_date;}
       public void setUpdateDate(String update_date) {this.update_date = update_date;}
       public String getLastUser() {return last_user;}
       public void setLastUser(String last_user) {this.last_user = last_user;}
      My StatefulBean
      package tcejb;
      import java.util.List;
      import java.util.Vector;
      import javax.ejb.*;
      import javax.persistence.*;
      public class LoginBean implements LoginRemote {
       private EntityManager manager;
       private String user;
       public void initialisieren(String key) {
       Query query = manager.createNamedQuery("LOV_USER.findByName");
       query.setParameter(1, key);
       List liste = query.getResultList();
       Vector<LOV_User> erg = new Vector<LOV_User>();
       for(Object o : liste)
       erg.add((LOV_User) o);
       user = erg.toString();
       public String getUser() {return user;}
       public void remove() {
      Please somebody get me a solution. I have no idea why the Column name is not ok. If i write the column-name from the database-table the same message pop up.