Debugging is the key process of finding and fixing bugs or unexpected behavior in your code. All code has errors, from incorrect behavior in your app to behavior that highly consumes memory or network resources, to actual app freezing or crashing.

Image for post
Image for post
https://images.app.goo.gl/YER8cchAU77Y6fyT6

Debugging is one of the crucial parts of a software developer’s everyday life. We always attempt to write bug-free applications but to do this, we have to fix every bug, which is sometimes hard to spot in the code. …


If you want to learn more about the main components from Room you could check this article : Room

Image for post
Image for post
source:https://media.giphy.com/media/nxWg8kZjJtMuQ/giphy.gif

Junction In Room

Junction to be used for joining a relationship, if a relation should be used as an associative table (also known as junctions table or join table) then can use this annotation to reference such table. This is useful for fetching many-to-many relations.

For example, if you have three tables like:

1.UserTable

@Entity(tableName = "user_table")
data class UserModel(
@PrimaryKey
@ColumnInfo(name = "user_id")
@SerializedName("user_id")
var id: String,
@ColumnInfo(name = "user_name")
@SerializedName("user_name")
var userName: String,
@ColumnInfo(name = "user_address")
@SerializedName("user_address")
var userAddress: String
)

This is a simple user table which stores user pieces of information with table name user_table. …

About

Nabin Shrestha (Noowenz)

Sr Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store