@PersistenceContext(unitName = "entity_pc", type = PersistenceContextType.EXTENDED)
private Session session;
public Customer oneToManyCreate() throws Exception {
Ticket t = new Ticket();
t.setNumber("111");
Customer c = new Customer();
Set<Ticket> tickets = new HashSet<Ticket>();
tickets.add(t);
t.setCustomer(c);
c.setTickets(tickets);
session.save(c);
return c;