1 22 package org.jboss.ejb3.test.entity; 23 24 import javax.ejb.TransactionAttribute ; 25 import javax.ejb.TransactionAttributeType ; 26 27 28 34 public interface EntityTest 35 { 36 Customer oneToManyCreate() throws Exception ; 37 38 Customer findCustomerById(Long id) throws Exception ; 39 40 Flight manyToOneCreate() throws Exception ; 41 42 Flight findFlightById(Long id) throws Exception ; 43 44 Company findCompanyById(Integer id) throws Exception ; 45 46 void manyToManyCreate() throws Exception ; 47 48 FieldCustomer fieldOneToManyCreate() throws Exception ; 49 50 FieldCustomer fieldFindCustomerById(Long id) throws Exception ; 51 52 FieldFlight fieldManyToOneCreate() throws Exception ; 53 54 void fieldManyToManyCreate() throws Exception ; 55 56 FieldFlight fieldFindFlightById(Long id) throws Exception ; 57 58 FieldCompany fieldFindCompanyById(Integer id) throws Exception ; 59 60 void testNamedQueries() throws Exception ; 61 62 @TransactionAttribute (TransactionAttributeType.NOT_SUPPORTED) 63 void testOutsideTransaction(); 64 65 Customer createCustomer(String name); 66 67 void changeCustomer(Long id, String name); 68 69 Customer loadCustomer(Long id); 70 } 71 | Popular Tags |