I\'m newbie in Java so this question looks so simple. I have a model like:
@Entity(name=\"website\")
public class Website {
@Id
@GeneratedValue(strategy=Generati
simply change path in <form:select> tag from publisher to publisher.publisherId
Some more things from my side:
You don't need to use @Column(name="websiteId", nullable=false, unique=true)
@Id it will never null and by default uniqe You don't need to use @JoinColumn at both side, at @OneToMany side use mappedBy attribute e.g. @OneToMany(mappedBy="publisher")