Finishing the Database - Android Room Database With Multiple Tables

  Рет қаралды 24,416

Philipp Lackner

Philipp Lackner

Күн бұрын

In this video we will create the database class and access our database in our app.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/...
🎓 Become an industry-ready developer in the Mobile Dev Campus:
pl-coding.com/...
🎁 Get my FREE 4.5h course "The Best Practice Guide to Android Architecture":
pl-coding.com/...
Read our weekly Android blog:
pl-coding.com/...
Get the source code for this video here:
github.com/phi...
Regular Android tutorials on my Instagram: / _philipplackner_
Checkout my GitHub: github.com/phi...

Пікірлер: 82
@carlosalba9690
@carlosalba9690 2 жыл бұрын
Love the Director and Student names. A true man of class an enjoyer of the arts one who pays attention to all the small details.
@markdee2153
@markdee2153 Жыл бұрын
Honestly, I dont know how one can code without watching these videos, it's my go to reference for all Kotlin related stuff. Man you are nearly as good as ChatGPT. Good job!
@rahulraj94391
@rahulraj94391 11 ай бұрын
by reading documentation carefully.
@mateuszkowalski7855
@mateuszkowalski7855 2 жыл бұрын
Hi Philip, love the videos. Nobody else in the comments has mentioned anything about the Director's names. Just thought I'd throw a mention to the fact that they made me chuckle audibly. Keep it up!
@wagnerarcieri
@wagnerarcieri 2 жыл бұрын
Mike Litoris was an awesome choice of name ! congrats ! made my day
@vathsan3906
@vathsan3906 4 жыл бұрын
I didn't knew dat of database before this playlist.. Now learnt a lot.. You are simply awesome...
@thomaswaldorf2829
@thomaswaldorf2829 2 жыл бұрын
Well after living with Firestore for a few years, I may need to re watch this series a few times... :)
@hacheguioneme
@hacheguioneme 3 жыл бұрын
"Donny Jepp, Hom Tanks, Mark Suckerberg" HAHAHAHAHA thanks a lot! this video was very helpful.
@wagnerarcieri
@wagnerarcieri 2 жыл бұрын
Director Mike Litoris
@chuka_obi5167
@chuka_obi5167 4 жыл бұрын
This was an awesome series Phillip! I learnt so much from watching it. Thank you
@alextroy605
@alextroy605 3 жыл бұрын
This your playlist - are AMAZING, thanky you so much, Philipp Lackner!
@АннаПомыткина-и8ш
@АннаПомыткина-и8ш 3 жыл бұрын
Awesome course on Room! Everything is clear, massive thank you!
@niazsagor
@niazsagor Жыл бұрын
Awesome content Phillip, really helpful.
@AdWit
@AdWit 3 жыл бұрын
Great set of videos Philip. Really useful. Keep doing great job! Wish you all best.
@prasannakumaranisetti2350
@prasannakumaranisetti2350 3 жыл бұрын
Thanks Philipp, this series helped me a lot.
@CodeWithNiks101
@CodeWithNiks101 3 жыл бұрын
Amazing explaination, just went through the complete playlist.
@arunkumarka1809
@arunkumarka1809 3 жыл бұрын
Thanks Philip for this wonderful tutorial.....
@jorghaumann6841
@jorghaumann6841 3 жыл бұрын
An realy awesome tutorial, I'm you newest Fan. Just right to the point!
@fakhrymubarak8957
@fakhrymubarak8957 4 жыл бұрын
it helps me a lot on my internship, thank you very much
@acaradovanovic3923
@acaradovanovic3923 4 жыл бұрын
Very good video bro best explanation on YT. U can store data in local Json and then insert it in datebase and in same time show people how to use local Json.
@brandednomad3075
@brandednomad3075 2 жыл бұрын
Great tutorial. Keep them coming.
@areuin2it
@areuin2it 2 жыл бұрын
Great series
@jonathanfelix445
@jonathanfelix445 4 жыл бұрын
Very well structured(3 relation types) series !!!
@nikiheaney5099
@nikiheaney5099 3 жыл бұрын
Thanks, dude, this helped ALOT.. got yourself a new subscriber. cheers
@mustafaammar551
@mustafaammar551 4 жыл бұрын
what an awesome tutorial Thank you bro Wish you all the best👍👍👍❤❤❤
@PhilippLackner
@PhilippLackner 4 жыл бұрын
You're welcome!
@fredzouza
@fredzouza 10 ай бұрын
Congratulations, this series helps a lot but i got one question, if i need to create a maintenance screen to any entity i need to replicate the Database class to each entity ?
@GriNAME
@GriNAME 3 жыл бұрын
Another thanks, Philipp!
@albertocastro5496
@albertocastro5496 3 жыл бұрын
This was a great series thank you
@haykmkrtchyan7093
@haykmkrtchyan7093 2 жыл бұрын
This was amazing Phillipp, thanks a lot))
@Ayor88
@Ayor88 10 ай бұрын
nice videos, I wish you also show how to delete stuff, especially with the N to M relation
@sohaibkhan845
@sohaibkhan845 2 жыл бұрын
Very well explained.
@fahidsarker4858
@fahidsarker4858 4 жыл бұрын
This playlist was amazing. Thanks a lot. It really helped me.
@PhilippLackner
@PhilippLackner 4 жыл бұрын
You're very welcome!
@souparnodey7382
@souparnodey7382 3 жыл бұрын
it was very amazing series.
@rishikeshsingh9946
@rishikeshsingh9946 5 ай бұрын
Amazing!
@moriz8549
@moriz8549 3 жыл бұрын
Thanks dear Philipp, that was great tutorial. I found a logical bug which is in 'getSchoolWithStudents' Query function in Dao Interface. the query must be: "SELECT * FROM student WHERE schoolName = :schoolName"
@pepiyoutube1342
@pepiyoutube1342 3 жыл бұрын
I think you don't need list as return type for getSubjectsOfStudent and getStudentsOfSubject here there will be always only 1 element in the list.
@techbrainz
@techbrainz 3 жыл бұрын
Superb 💓💓💓💓💓
@RaulSC9
@RaulSC9 10 ай бұрын
What is the reason for returning a list of "StudentWithSubjects"? If in any case it will not return more than one object of this type. Best regards and thanks for the videos
@FckYouPlz
@FckYouPlz 3 жыл бұрын
I don't understand why do we need the crossRef table if we need to manually manage to enter values into it like you did in the MainActivity where you created a crossRef instance and added it to the DB. This means that for a big complex production app I will need to know each and every cross references tables that each table has before entering values into it and make sure I add each and every one of them manually and correctly otherwise I will cause massive errors. Did I get it right?
@rahulnirmesh3388
@rahulnirmesh3388 3 жыл бұрын
Awesome point mate :) Any thoughts Philipp??
@snansahmarov1524
@snansahmarov1524 3 жыл бұрын
Thank you Philipp
@hichemhammadache8798
@hichemhammadache8798 3 жыл бұрын
Thank you philipp
@soontaek
@soontaek 4 жыл бұрын
Thank you as always 🙂
@tonyblack1981
@tonyblack1981 3 жыл бұрын
Brilliant tutorial but if I decide to use autogenerated primary key how do I insert that as a foreign key into another entity
@andrer2664
@andrer2664 3 жыл бұрын
I had the same Question
@andrer2664
@andrer2664 3 жыл бұрын
If you define return type in Dao. You get the inserted id from insert function.
@reeceyamato
@reeceyamato 2 жыл бұрын
Great sets of videos as always I'm a beginner and I have learned so much from your tutorials Thank you! I have one question, if I want to create an app with 3 different data let's said:a note app one activity will be costumers, the other activity will be employees and the last activity will be notes, but I don't want the data to have relation, just want to have my data independent in every activity, in this scenario I know that I need to create 3 entitys, but; do I need to create 3 Databases and 3 interfaces? Or can be done with only one interface and one database? I hope that you understand what I mean, English is not primary language, Thank you in advance for your help!
@dreamer6228751
@dreamer6228751 4 жыл бұрын
It's cool bro!
@AryanvedhFromIndia
@AryanvedhFromIndia 3 жыл бұрын
great video, thanks, you did add entries here yourself, but what would have been the code if there was a prepopulated database.db
@yutech2091
@yutech2091 3 жыл бұрын
It helped so much
@rubinho388
@rubinho388 2 жыл бұрын
Mike Litoris killed me XD
@djtrzeszczyk
@djtrzeszczyk 3 жыл бұрын
Thanks for this viedo:)
@mauriciopriego1700
@mauriciopriego1700 3 жыл бұрын
merci
@YouGuto
@YouGuto 4 жыл бұрын
Love It 😘
@pavlo_kulinenko
@pavlo_kulinenko 4 жыл бұрын
Cool video
@paulvickers8059
@paulvickers8059 3 жыл бұрын
I would be great if you could show a real app with this kind of stuff. You only get the basic crud todo apps. A more complex app teaching this kind of stuff would be invaluable.
@techbrainz
@techbrainz 3 жыл бұрын
Please make a video to delete data with data linked in multiple tables
@amineayachi335
@amineayachi335 3 жыл бұрын
Great playlist thanks , is room better than realm ?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Yes it is
@vathsan3906
@vathsan3906 4 жыл бұрын
lmao .. I laughed hard at the entities you created at the last...
@shs4293
@shs4293 Жыл бұрын
Where's the model view and view for this??
@fahidsarker4858
@fahidsarker4858 4 жыл бұрын
Can you make another tutorial showing how to include a .db file with preloaded data by using room?
@alij3fer
@alij3fer 4 жыл бұрын
Thanks bro
@arpitgupta3151
@arpitgupta3151 4 жыл бұрын
I'm getting error on using lifecycleScope. It's not available
@KotlinBek
@KotlinBek 2 жыл бұрын
I tried to make many to many relationship but it didn't work. and you also didn't show the result. all you have to do write LOG.
@hamedhardani8302
@hamedhardani8302 3 жыл бұрын
What if I want to get all the students and know what is the name of each student's School? I mean each Student goes to a specific (1) School, And each School has many (N) students. So what should the query be like if I want to get a List of Students that contains the School name too? I want to show all the Student names AND their School name in a RecyclerView item.
@zoltansolutions
@zoltansolutions 4 жыл бұрын
What if my primary keys are integers and I would like to insert and query from multiple tables? I have sofar three entity: Products/prodId, Name, etc/ Account/ accId, accName, etc/ Expenses/itemId, prodId, accId, price, etc/. As I understood my relation is 1 to n, but I can not find a solution for that. Thank you Philipp!
@solomonfried9353
@solomonfried9353 2 жыл бұрын
did you figure this out? I want to do the same thing.
@MDDanishAnsariDev
@MDDanishAnsariDev 4 жыл бұрын
Can someone tell me with the procedure of taking admission in Jake Wharton school?
@Traffic_Pro
@Traffic_Pro Жыл бұрын
beff jezos😁
@brunopistolero2265
@brunopistolero2265 3 жыл бұрын
Ja awesome Philipp aber what about a german Tutorial? - da gibts viel zu wenige von
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Haha ja, international hat Reichweiten technisch halt einfach das viel größere Potential, im deutschen ist mir die nische zu klein
@vikramragunathan6392
@vikramragunathan6392 6 ай бұрын
Names ROFL 😄😄
@blattwald7650
@blattwald7650 4 жыл бұрын
tired of CTRL+C, CTRL+P, use CTRL+D,
@akashdeepwadhwa5828
@akashdeepwadhwa5828 3 жыл бұрын
usualy ALT+F4 is sufficent
@pierremarais7669
@pierremarais7669 2 жыл бұрын
Philipp, thanks for this, I am new to Android, this will help me with my new App, I do follow you also on Instagram, I have a question, will you be so great to assist me, thanks
@vivekdevre4402
@vivekdevre4402 2 жыл бұрын
why am i getting this error: Not sure how to convert a Cursor to this method's return type (java.lang.Object). public abstract java.lang.Object getSchoolAndDirectorWithSchoolName(@org.jetbrains.annotations.NotNull()
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Make Your Code Clean With the SOLID Principles
18:24
Philipp Lackner
Рет қаралды 103 М.
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Philipp Lackner
Рет қаралды 101 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 84 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 145 М.
Room Database - Using Foreign Keys!
10:05
Charfaoui Younes
Рет қаралды 3,6 М.
N-to-M Relationships - Android Room Database With Multiple Tables
9:02