To earn money on java go to upwork.com
TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
You don't need to do anything special, just map it the same way you map any relationship. You can use @OneToOne or @ManyToOne.