Skip to main content

recipesteps

@Entity (tableName = "recipesteps", foreignKeys = @ForeignKey(entity = Recipe.class, parentColumns = "id", childColumns = "recipeID", onDelete = CASCADE))
public class RecipeStep {
    @PrimaryKey (autoGenerate = true)
    private int stepID;
    private int recipeID;
    private String stepTitle;

****
}
     
@Entity (tableName = "recipes")
public class Recipe {
    @PrimaryKey (autoGenerate = true)
    private int id;
    private String title;
}