• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Firebase database: data stored in new node not node I wanted...Please help

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys..( I hope this is posted to the right area...if not can a moderator move it please)

I am busy with a project that will store information to FirebaseDatabase... I wrote all the code as per the tutorials, but my database setup is a little different to what the tutorial is teaching..

I created a user and Logon in Firebase Auth...

and under this User UID, in the database I have created the fields that I want to save...but what is happening is that the data that is being uploaded to the database is not stored under the
User UID but under a random number?? Could Someone please help me with this:
the code that is uploading the data:


I have an Emper_info_data.class that has all the getters and setters...


the Firebase Database looks like this:


ProjectName:

      =>ljhdflghlkshfl....(random code with the uploaded data)

                 =>name:
                 =>surname
                 =>address
                 =>contact

      =>xxxxxxxxxx....(userid with required place of storage)

                  =>emper_info_data
                                =>name:
                                =>surname
                                =>address
                                =>contact

                  =>empee_info_data
                                =>name:
                                =>surname
                                =>address
                                =>contact



I hope this helps...

Thanks a lot

Ben
 
Ben van Jaarsveld
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not resolved but found another tutorial that gave me the answer that I need...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!