relation « Default « JPA Q&A





1. JPA: default column name mapping for @ManyToOne relations    stackoverflow.com

When we have a class:

@Entity
Order implements Serializable {
    @Id
    private Integer id;
    ...
}
and:
@Entity
OrderLine implements Serializable {
    @Id
   ...