Today I want to show you an example of unidirectional one to one association using primary key. It can be a little bit difficult for beginners to setup such association but I will try my best to explain all aspects in a clear way. For this tutorial I choose MySQL as a database, also I will use Hibernate and JPA annotations.
The term "software development" has a lot of different abbreviations, especially when we are talking about Java development. Every day, reading any IT-portal you can see something like this: EJB, JSF, GWT, JSTL, POJO, JPA... Sometimes it seems hard to keep track of all rapidly changing technologies. So today I'm going to clarify all the aspects of JPA and Hibernate.