This content has been marked as final.
Show 2 replies
-
1. Re: primary auto increment for MySQL
cptnkirk Jul 5, 2006 9:31 PM (in response to urswag)You'll have a better chance of getting a helpful response if you ask your question on the Hibernate or EJB3 forums.
-
2. Re: primary auto increment for MySQL
urswag Jul 6, 2006 5:03 PM (in response to urswag)It is dummy mistake. I have to use long type and not the Long class. This helps.
@Id
@GeneratedValue
public long getUserid() {
return userid;
}
public void setUserid(long userid) {
this.userid = userid;
}