321322323324325326327328329330331
Ticket t2 = new Ticket(); t2.setNumber( "234ER" ); Customer c = new Customer(); s.persist( c ); //s.persist(t); SortedSet<Ticket> tickets = new TreeSet<Ticket>( new TicketComparator() ); tickets.add( t ); tickets.add( t2 ); c.setTickets( tickets ); tx.commit();
294295296297298299300301302303304
296297298299300301302303304305306
292293294295296297298299300301302
298299300301302303304305306307308
297298299300301302303304305306307