title: W/ClassMapper: No setter/field for class firebase android studio
body: <p>I am having a user account where each user account has its own investors</p>
  <p>Below is my Investors class</p>
  <pre><code>
  public class Investor {
  
      int investorAvatar;
      String name;
      String username;
      String country;
      String phoneNo;
      String securityCode;
      String dateJoined;
      String sharedAgreed;
  
      public Investor() {
      }
  
      public Investor(String name, String username, String country,
                      String phoneNo, String securityCode,
                      String dateJoined, String sharedAgreed) {
  
          this.name = name;
          this.username = username;
          this.country = country;
          this.phoneNo = phoneNo;
          this.securityCode = securityCode;
          this.dateJoined = dateJoined;
          this.sharedAgreed = sharedAgreed;
  
      }
  
      public int getInvestorAvatar() {
          return investorAvatar;
      }
  
      public void setInvestorAvatar(int investorAvatar) {
          this.investorAvatar = investorAvatar;
      }
  
      public String getUsername() {
          return username;
      }
  
      public void setUsername(String username) {
          this.username = username;
      }
  
      public String getDateJoined() {
          return dateJoined;
      }
  
      public void setDateJoined(String dateJoined) {
          this.dateJoined = dateJoined;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getCountry() {
          return country;
      }
  
      public void setCountry(String country) {
          this.country = country;
      }
  
      public String getPhoneNo() {
          return phoneNo;
      }
  
      public void setPhoneNo(String phoneNo) {
          this.phoneNo = phoneNo;
      }
  
      public String getSecurityCode() {
          return securityCode;
      }
  
      public void setSecurityCode(String securityCode) {
          this.securityCode = securityCode;
      }
  
      public String getSharedAgreed() {
          return sharedAgreed;
      }
  
      public void setSharedAgreed(String sharedAgreed) {
          this.sharedAgreed = sharedAgreed;
      }
  }
  
  </code></pre>
  <p>Below is how my my Investors are in Firebase Realtime Database</p>
  <pre><code>{
      &quot;CVSmRGYF49b0D4QawhA7dF4ZSKT2&quot;: {
          &quot;-Mn0hCk5sC7Og5_fyf0X&quot;: {
              &quot;country&quot;: &quot;Tanzania&quot;,
              &quot;dateJoined&quot;: &quot;2021-10-28&quot;,
              &quot;investorAvatar&quot;: 0,
              &quot;name&quot;: &quot;usertest5&quot;,
              &quot;phoneNo&quot;: &quot;074561344&quot;,
              &quot;securityCode&quot;: &quot;8282829&quot;,
              &quot;sharedAgreed&quot;: &quot;12&quot;,
              &quot;username&quot;: &quot;testuser5&quot;
          }
      },
      &quot;DR2mU44n0CW91uB3AhB2W426WrK2&quot;: {
          &quot;-Mn0awrOK1BDsCPnfH-Q&quot;: {
              &quot;country&quot;: &quot;kenya&quot;,
              &quot;dateJoined&quot;: &quot;2021-10-25&quot;,
              &quot;investorAvatar&quot;: 0,
              &quot;name&quot;: &quot;Test User&quot;,
              &quot;phoneNo&quot;: &quot;0714810492&quot;,
              &quot;securityCode&quot;: &quot;154512122&quot;,
              &quot;sharedAgreed&quot;: &quot;12&quot;,
              &quot;username&quot;: &quot;testuser1&quot;
          },
          &quot;-Mn0ezofS6Rjt6KbaytX&quot;: {
              &quot;country&quot;: &quot;Uganda&quot;,
              &quot;dateJoined&quot;: &quot;2021-10-27&quot;,
              &quot;investorAvatar&quot;: 0,
              &quot;name&quot;: &quot;testuser4&quot;,
              &quot;phoneNo&quot;: &quot;0763566445&quot;,
              &quot;securityCode&quot;: &quot;568956&quot;,
              &quot;sharedAgreed&quot;: &quot;12&quot;,
              &quot;username&quot;: &quot;user4&quot;
          }
      }
  }
  
  </code></pre>
  <p>CVSmRGYF49b0D4QawhA7dF4ZSKT2 and DR2mU44n0CW91uB3AhB2W426WrK2 are the user ids where below each user id there is a list of investors</p>
  <p>Below is how i am fetching the list for investors in user id DR2mU44n0CW91uB3AhB2W426WrK2 only using an Investor Dao class and trying to print the list inside onViewCreated method in a fragment</p>
  <pre><code>
  public class InvestorDao {
  
      private final DatabaseReference rootDatabaseReference;
  
      private final FirebaseUser firebaseUser;
  
      public InvestorDao() {
  
          firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
  
  
          FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance(&quot;https://lucemtrader-default-rtdb.europe-west1.firebasedatabase.app&quot;);
  
          rootDatabaseReference = firebaseDatabase.getReference(&quot;Investors&quot;).child(&quot;DR2mU44n0CW91uB3AhB2W426WrK2&quot;);
  
  
      }
  
  
      public List&lt;Investor&gt; returnInvestorsList() {
  
          List&lt;Investor&gt; investorsList = new ArrayList&lt;&gt;();
  
          rootDatabaseReference.addValueEventListener(new ValueEventListener(){
  
              @Override
              public void onDataChange(@NonNull DataSnapshot snapshot) {
  
                  for (DataSnapshot dataSnapshot: snapshot.getChildren()){
  
                      Investor investor = dataSnapshot.getValue(Investor.class);
  
                      investorsList.add(investor);
  
                  }
  
              }
  
              @Override
              public void onCancelled(@NonNull DatabaseError error) {
  
              }
          });
  
          return investorsList;
      }
  
  
  </code></pre>
  <p>And below is how i am Logging my list inside onViewCreated method in fragment</p>
  <pre><code>
  Log.wtf(&quot;InvestorsList&quot;, new Gson().toJson(new InvestorDao().returnInvestorsList()));
  
  </code></pre>
  <p>But i am getting below error yet in my class i have already included the getters and setters what might be the problem</p>
  <pre><code>
  W/ClassMapper: No setter/field for CVSmRGYF49b0D4QawhA7dF4ZSKT2 found on class manu.apps.lucemtrader.classes.Investor
      No setter/field for DR2mU44n0CW91uB3AhB2W426WrK2 found on class manu.apps.lucemtrader.classes.Investor
  
  </code></pre>