Hi All,
I am facing a problem. hope someone can help me. I am writing a User
POJO using JPA to persist the object in datastore. i am trying to add
a List of tags to users, which gives me error "unknown attribute type
should not be container." as shown in below line.
Can anyone let me know what am i doing wrongly?
Thanks
@Entity(name = "User")
public class User implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String userid;
private String fname;
private String lname;
private String email;
private String password;
private List<String> tags; // gives error here - unknown attribute
type should not be container.
public Long getId() {
return id;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getFname() {
return fname;
}
public void setFname(String fname) {
this.fname = fname;
}
public String getLname() {
return lname;
}
public void setLname(String lname) {
this.lname = lname;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.