package com.godoro.atom.test;
import com.godoro.atom.business.*;
import com.godoro.atom.entity.*;
import com.godoro.atom.library.*;
import com.godoro.atom.repository.*;
import java.util.*;
public class CrudTest {
public static void main(String[] args) {
Customer customer1 = new Customer(0, "Sabahat Akkiraz 2", 5600);
CustomerBusiness customerBusiness = new CustomerBusiness();
customerBusiness.persist(customer1);
List<Customer> customerList = customerBusiness.list();
for (Customer customer : customerList) {
System.out.println(customer.getCustomerId()
+ " " + customer.getCustomerName()
+ " " + customer.getTotalDebit());
}
customerBusiness.close();
}
}
Dosyayı İndir