Package

Source Code of testAddBookLoanCustomerCascadeDelete

import controller.BookManager;
import model.Book;
import model.Customer;
import model.Loan;


public class testAddBookLoanCustomerCascadeDelete {
  public static void main(String[] args)
  {
    BookManager linkController = new BookManager();
   
    Book book = new Book();
    book.setAuthor("John Casey");
    book.setTitle("Java Hibernate");
    book.setGenre("Fun");
   
    Customer customer = new Customer();
    customer.setName("Peter");
   
    Loan loan = new Loan();
   
    loan.setBook(book);
    loan.setCustomer(customer);
   
    loan = linkController.addLoan(loan);
    loan = linkController.deleteLoan(loan);

  }
}
TOP

Related Classes of testAddBookLoanCustomerCascadeDelete

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.