Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [EL Warning]: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.DatabaseException
- Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "USER" at line 1, column 14.
- Error Code: 30000
- @NamedQuery( name = "User.findByUsername", query = "SELECT u FROM User u WHERE u.username = :userneme AND u.password = :password" )
- @Entity
- public class User implements Serializable {
- @Transient
- private static final long serialVersionUID = 1L;
- public User() {
- super();
- }
- @Id
- @GeneratedValue( strategy = GenerationType.AUTO )
- private Integer id;
- private String username;
- private String password;
- public String getUsername() {
- return username;
- }
- public void setUsername( String username ) {
- this.username = username;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword( String password ) {
- this.password = password;
- }
- @Table(name="'User'")
- public class User {...}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement