SHARE
TWEET

Untitled

a guest Sep 24th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [EL Warning]: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.DatabaseException
  2. Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "USER" at line 1, column 14.
  3. Error Code: 30000
  4.    
  5. @NamedQuery( name = "User.findByUsername", query = "SELECT u FROM User u WHERE u.username = :userneme AND u.password = :password" )
  6. @Entity
  7. public class User implements Serializable {
  8.  
  9.     @Transient
  10.     private static final long serialVersionUID = 1L;
  11.  
  12.     public User() {
  13.         super();
  14.     }
  15.  
  16.     @Id
  17.     @GeneratedValue( strategy = GenerationType.AUTO )
  18.     private Integer id;
  19.  
  20.     private String  username;
  21.     private String  password;
  22.  
  23.     public String getUsername() {
  24.         return username;
  25.     }
  26.  
  27.     public void setUsername( String username ) {
  28.         this.username = username;
  29.     }
  30.  
  31.     public String getPassword() {
  32.         return password;
  33.     }
  34.  
  35.     public void setPassword( String password ) {
  36.         this.password = password;
  37.     }
  38.    
  39. @Table(name="'User'")
  40. public class User {...}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top