This was not really meant to work previously. What should work is
| Owner{
| @OneToOne(fetch=FetchType.LAZY, cascade=CascadeType.ALL)
| @PrimaryKeyJoinColumn
| public Employment getEmployment() { return employment; }
| }
|
and
| Employment {
| @Id
| @GenericGenerator(name="fk", strategy="foreign", parameters={
| @Parameter(name="property", value="owner")
| })
| @GeneratedValue(strategy=GenerationType.AUTO, generator="fk")
| @Column(name="owner_id")
| public Long getId(){ return id; }
|
| @OneToOne(mappedBy="employment")
| public AccountOwner getOwner(){ return owner; }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945809#3945809
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945809
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user