Wonder how to use the JPA OneToMany annotation?

If you are looking for one entity to own / refer to many entities you can use @OneToMany to define the relationship. See https://github.com/manorrock/jakartaee-examples/tree/master/jpa/oneToMany for an example on how to do this.

Posted September 26th, 2018

Up