I am not sure what I am doing wrong, when I attempt to use either @OneToOne or @ManyToOne with @Jointable as shown in the Hibernate 3.2.0 CR1 documentation I recieve the same error:
Code:
org.hibernate.cfg.NotYetImplementedException: association table on a single ended association is not yet supported
Here is the code for my OneToOne:
Code:
@Entity
@Table(name = "certcandidate")
public class Certcandidate implements java.io.Serializable {
private String internalid;
private String status;
private String lastchangeuserid;
private Date lastchangetimestamp;
private Person person;
...
@OneToOne(cascade=CascadeType.ALL)
@JoinTable(name="certcanper",
joinColumns={@JoinColumn(name="certificationcandidateid")},
inverseJoinColumns={@JoinColumn(name="personid")})
public Person getPerson() {
return person;
}
...
}
@Entity
@Table(name = "person")
public class Person implements java.io.Serializable {
private String internalid;
private String status;
private String prefix;
private String firstname;
private String middlename;
private String lastname;
private String suffix;
private String typeinternalid;
private String lastchangeuserid;
private Date lastchangetimestamp;
private Certcandidate certcandidate;
@OneToOne(mappedBy="person")
public Certcandidate getCertcandidate() {
return certcandidate;
}
...
}
And the association table "certcanper" contains the stated fks.
I believe I am using 3.2.0.CR1, my application is running using JBossSeam in JBossAS 4.0.4CR2 and during start-up the following is displayed:
Code:
13:31:41,208 INFO [Environment] Hibernate 3.2 cr1
Thank you very much for your help.