Hi all,
In Hibernate Annotations reference Guide part 2.2.5.3.1.2. Unidirectional one-to-many mappings there is the the example given below. Can someone fill in the inside of getTickets() function? if it returns set of tickets where are these tickets declared?
Kind Regards,
@Entity public class Customer implements Serializable { @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER) @JoinColumn(name="CUST_ID") public Set<Ticket> getTickets() { ... }
@Entity public class Ticket implements Serializable { ... //no bidir }
|