Added default constructors to database models

Empty constructors are needed as we apply the single parameters
using setters. Also it seems to be a sqlite standard.
This commit is contained in:
Alexander Doerflinger
2017-08-07 16:46:01 +02:00
parent 3be3e9ff57
commit 68a4744fa0
7 changed files with 35 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ public class Accessory {
*/ */
private int mAvailable; private int mAvailable;
/**
* Empty default constructor.
*/
public Accessory() {}
/** /**
* The constructor of this accessory object. * The constructor of this accessory object.
* *

View File

@@ -41,6 +41,11 @@ public class Character {
*/ */
private int mAvailable; private int mAvailable;
/**
* Empty default constructor.
*/
public Character() {}
/** /**
* The constructor of this character object. * The constructor of this character object.
* *

View File

@@ -31,6 +31,11 @@ public class Game {
*/ */
private String mCoverUri; private String mCoverUri;
/**
* Empty default constructor.
*/
public Game() {}
/** /**
* The constructor of this game object. * The constructor of this game object.
* *

View File

@@ -62,6 +62,11 @@ public class Kart {
*/ */
private int mAvailable; private int mAvailable;
/**
* Empty default constructor.
*/
public Kart() {}
/** /**
* The constructor of this kart object. * The constructor of this kart object.
* *

View File

@@ -61,6 +61,11 @@ public class Ruleset {
*/ */
private int mBikesAvailable; private int mBikesAvailable;
/**
* Empty default constructor.
*/
public Ruleset() {}
/** /**
* The constructor of this ruleset object. * The constructor of this ruleset object.
* *

View File

@@ -46,6 +46,11 @@ public class Track {
*/ */
private int mAvailable; private int mAvailable;
/**
* Empty default constructor.
*/
public Track() {}
/** /**
* The constructor of this track object. * The constructor of this track object.
* *

View File

@@ -36,6 +36,11 @@ public class Wheels {
*/ */
private int mAvailable; private int mAvailable;
/**
* Empty default constructor.
*/
public Wheels() {}
/** /**
* The constructor of this wheels object. * The constructor of this wheels object.
* *