src/com/vehiclerental/dataLayer/sqliteImplementation/OrmLiteHelper.java
/**
     * Creates the Branch table and generates default values
     *
     * @param dao ORMLite branch data access object
     */
Creates the Branch table and generates default values
@param dao ORMLite branch data access object
Creates the Branch table and generates default values @param dao ORMLite branch data access object
private void initializeBranchTable(Dao<Branch, Integer> dao) {
        try {
            TableUtils.createTable(OrmLiteConnectionSingleton.getInstance(), Branch.class);
            dao.create(new Branch(1, "London", 51.507351, -0.127758));
            dao.create(new Branch(2, "Paris", 48.856614, 2.352222));
            dao.create(new Branch(3, "Madrid", 40.416775, -3.703790));
            dao.create(new Branch(4, "Berlin", 52.520007, 13.404954));
        } catch (SQLException e) {
            System.out.println("Error initializing branch table");
            e.printStackTrace();
        }
    }
private void initializeBranchTable ( Dao < Branch , Integer > dao ) { try { TableUtils . createTable ( OrmLiteConnectionSingleton . getInstance ( ) , Branch . class ) ; dao . create ( new Branch ( 1 , "London" , 51.507351 , - 0.127758 ) ) ; dao . create ( new Branch ( 2 , "Paris" , 48.856614 , 2.352222 ) ) ; dao . create ( new Branch ( 3 , "Madrid" , 40.416775 , - 3.703790 ) ) ; dao . create ( new Branch ( 4 , "Berlin" , 52.520007 , 13.404954 ) ) ; } catch ( SQLException e ) { System . out . println ( "Error initializing branch table" ) ; e . printStackTrace ( ) ; } }
Creates the Branch table and generates default values
 @param dao ORMLite branch data access object
Creates the Branch table and generates default values @param dao ORMLite branch data access object