This annotation defines a single-valued association to another
entity class that has many-to-one multiplicity. It is not normally
necessary to specify the target entity explicitly since it can
usually be inferred from the type of the object being referenced.
Example:
@ManyToOne(optional=false)
@JoinColumn(name="CUST_ID", nullable=false, updatable=false)
public Customer getCustomer() { return customer; }
|