Hi Enrico,
this should work:
@Entity
@Table(name = "USER_PROFILE")
public class UserProfile extends EntityBase {
private Long id;
public UserProfile(){
}
@Id
@SequenceGenerator(name = "user_prof_seq", sequenceName =
"SEQ_USER_PROF", initialValue=1, allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,
generator="user_prof_seq")
@Column(name="ID")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
...
}
--
Lucio Benfante http://www.lambico.org
JUG Padova http://www.parancoe.org
www.jugpadova.it http://www.jugevents.org