Doorgaan naar hoofdcontent

Posts

Er worden posts getoond met het label workshop

JPA problem: Column override on fields

Today I was struggling with WLS 10.3, Workshop 10.3, JPA and Hibernate to get an Entity persistent to a Database. I got the following error: I used the following code (which was acutally generated by Workshop!): @Entity() @Table(name="werknemers") public class Werknemer implements Serializable { //default serial version id, required for serializable classes. private static final long serialVersionUID = 1L; @Id private String persNummer; private String emailInternet; public Werknemer() { } @Basic() @Column(name="email_internet", nullable=false, length=128) public String getEmailInternet() { return this.emailInternet; } public void setEmailInternet(String emailInternet) { this.emailInternet = emailInternet; } } As you can see from the error code the column name "email_internet" (as indicated by @Column) was not taken, but instead the "emailInternet" property was taken. I could not find the problem, but the followin...