Skip to content

sequencerr/mate-hibernate-order-hw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implement order

  • Create models
    • Order
  • Create DAO
    • OrderDao. To get the order for a specific user create method getByUser().
  • Create service
    • OrderService
      public interface OrderService {
          Order completeOrder(ShoppingCart shoppingCart);
          
          List<Order> getOrdersHistory(User user);
      }
  • In the mate/academy/Main.main() method create instance of OrderService using injector and test all methods from it.

Attention!!!: you can have some problem with naming of the table. Let's use orders instead of order.

You can check yourself using this checklist

Model structure

pic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%