Columns cannot be resolved!? [message #575636] |
Sat, 25 February 2006 19:57 |
Vincent Jenks Messages: 27 Registered: July 2009 |
Junior Member |
|
|
I'm having problems w/ the latest dali release (M1). I did the
walk-through, created a simple java project and a simple class w/ three
fields. I made it persistent (added the database and connected to it,
mysql 4.0) and as soon as I define it as an Entity I start having problems
w/ the annotations.
Here's my class:
package com.zambizzi;
import javax.persistence.Id;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity(name="UserEJB")
@Table(name="user")
public class UserEJB {
@Id
private int id;
private String username;
private String password;
public UserEJB() {
super();
// TODO Auto-generated constructor stub
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
I have errors telling me:
Column "id" cannot be resolved
Column "username" cannot be resolved
Column "password" cannot be resolved
Am I doing something wrong? I created the table, it's there, and I can
browse it in the database explorer. :|
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.02910 seconds