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

  • SEARCH
  • Home
  • 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 7944325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:31:08+00:00 2026-06-04T00:31:08+00:00

I`m developing an application that needs to keep some Twitter4J statuses on a MySql

  • 0

I`m developing an application that needs to keep some Twitter4J statuses on a MySql database.
Where can I find a place with informations to help me model the table?

  • 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-04T00:31:09+00:00Added an answer on June 4, 2026 at 12:31 am

    You should look at the twitter4j Status interface. It has all the information relating to a status including for example:

    • createdAt()
    • getId()
    • User
    • text

    The Status object that you will create can also be used to retrieve arrays of information such as:

    • hashtags
    • URLs/links
    • media entities
      And mentions.

    There is more functionality – check out the java doc here http://twitter4j.org/en/javadoc/index.html

    How you implement this is obviously up to you. Twitter offers a number of APIs, more information can be found at twitter dev site under documentation.

    When making your choice bare in mind that the REST API is rate limited meaning that you will only be able to make a certain number of requests for a given time period (again see docs for more info).

    You also have access to the streaming API that pushes all data to your application based on factors such as keyword filters.

    You can then design your database model.You could do this using standard MySQL library or if you are using java ee platform you could create and entity class like so :

    package entities;
    
    import java.io.Serializable;
    import java.util.List;
    import javax.persistence.*;
    import javax.validation.constraints.NotNull;
    import javax.validation.constraints.Size;
    
    @Entity
    @Table(name = "twitterstatus")
    public class TwitterStatus implements Serializable {
    
        private static final long serialVersionUID = 1L;
        @Id
        @Column(name = "statusId")
    
        private Long statusId;
        @Basic(optional = false)
        @NotNull
        @Size(min = 1, max = 15)
        @Column(name = "statusUserName")
    
        private String statusUserName;
        @Basic(optional = false)
        @NotNull
        @Size(min = 1, max = 140)
        @Column(name = "statusText")
    
        private String statusText;
    
        @OneToMany(mappedBy = "statusId")    
        private List<TwitterStatusUrl> twitterStatusUrlList;
    
        public TwitterStatus() {
        }
    
        public TwitterStatus(Long statusId) {
            this.statusId = statusId;
        }
    
        public TwitterStatus(Long statusId, String statusUserName, String statusText) {
            this.statusId = statusId;
            this.statusUserName = statusUserName;
            this.statusText = statusText;
        }
    
        public Long getStatusId() {
            return statusId;
        }
    
        public void setStatusId(Long statusId) {
            this.statusId = statusId;
        }
    
        public String getStatusUserName() {
            return statusUserName;
        }
    
        public void setStatusUserName(String statusUserName) {
            this.statusUserName = statusUserName;
        }
    
        public String getStatusText() {
            return statusText;
        }
    
        public void setStatusText(String statusText) {
            this.statusText = statusText;
        }
    
        public List<TwitterStatusUrl> getTwitterStatusUrlList() {
            return twitterStatusUrlList;
        }
    
        public void setTwitterStatusUrlList(List<TwitterStatusUrl> twitterStatusUrlList) {
            this.twitterStatusUrlList = twitterStatusUrlList;
        }
    }
    

    note: you will need to create a data-source and persistence unit (there are many tutorials online surrounding this area. An example could be this article and others that it links to – JPA java code generation).

    Sorry would have included more links to useful info but am limited because I am a new user here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an application that needs to perform some processing on the user's Outlook
I am developing a .NET application (using C#) that needs to massage some Adobe
I have a Windows Phone application I am developing that needs to persist some
What ? I am developing a Console Application that needs to keep running 24/7
I am developing a application that needs to store data with many writes and
I am developing an application that needs to inform users (around 1800) on a
Hi I am developing an application that needs to work with a complex domain
I am developing an application that needs to read back the whole frame from
I'm developing a C++ application that needs a GUI. I would like to use
I am developing an internally-facing application that needs to automatically authenticate users via Windows

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.