• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAOFactory.getDbManager

 
Himai Minh
Ranch Hand
Posts: 1256
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Roberto buddy's DataTest class, he wrote a DAOFactory class and a getDbManager method to load the database file.
Can I load the db file in my own way?
In my instruction.html, I don't see any " must " requirement that we must have a DAOFactory class.

In my instruction.html, I don't see any "must" that says submitting any test class. Does it mean I don't need to submit my own test class?
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easy & short answers:
  • You can load the db file as you want
  • You don't have to provide/submit any test classes
  •  
    Roberto Perillo
    Bartender
    Posts: 2271
    3
    Eclipse IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You know, if I had to do everything again today, I wouldn't have a DAOFactory. The Data class wouldn't be a singleton either. I'd instantiate the Data object when the application is started, instantiate the business object, passing the Data object as a parameter in the business class' constructor, and instantiate the window, passing the business object in the window's constructor. Although the Data object wouldn't be a singleton, it would be as if it was a singleton, since it would be unique in the application.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic