Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:11:55+00:00 2026-06-12T04:11:55+00:00

I am working on Android platform. I am using POJO class to create the

  • 0

I am working on Android platform. I am using POJO class to create the Sqlite DB field names.

e.x.

class Provider {
    int id;
    String data;
    String value;
}

Based on the above POJO class, 3 fields with the given name will be generated at SQlite DB.But i want to create the name of fields(Column) different name into Sqlite DB.

e.x.

class Provider {
    @Annotation(FieldNameInDB = loginId)
    int id;

    @Annotation(FieldNameInDB = providerData)
    String data;

    @Annotation(FieldNameInDB = providerValue)
    String value;
}

Above POJO class having annotation and also the column names has been given using annotation, whatever the names being used needs to be created as column names (loginId,providerData,providerValue).

So, SQLite DB will have 3 columns named as (loginId,providerData,providerValue).

Please provide solution using Java Annotation to create Custom Column names into SQLite DB and using custom names, we can retrieve the values from it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:11:56+00:00Added an answer on June 12, 2026 at 4:11 am

    Try it out:

    @DatabaseField(columnName="providerData")
    private String data;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Android Eclair 2.1 platform. The working behind this code is,
I am using Android 3.1 platform and i just want to create new contact
I am currently working on an e-book for the android platform. I'm using Eclipse,
i am working on android and trying to read a value from my preference
I am currently working on android project where I am using a custom list
I am working on a cross-platform mobile game for Android and iOS devices. I
I am working on a cross platform mobile application using phonegap (html,javascript) problem is
I am trying to upload pictures on the wall of Facebook using Android platform.
I am working on an Android phone based on the Linux Kernel. I'm using
I am working for manufacture of cell phones. we develop for the Android platform,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.