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 929087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:06:45+00:00 2026-05-15T20:06:45+00:00

I have a web app, I’d like the user to supply their real name,

  • 0

I have a web app, I’d like the user to supply their real name, for friend searches. I’m not sure whether to store this as two separate fields in my user class, or as a single field:

class User {
    @Persistent
    private String mFirstName;

    @Persistent
    private String mLastName;
}

    .. or ..

class User {
    @Persistent
    private String mFullName;
}

I’m only going to use it to let users search for people. For example, they might search for “John”, or “John Doe”, or “Doe”. I’m not sure what the app engine query engine allows us to do here, in terms of partial matches and such – has anyone gone through this and can recommend a good solution? I’m leaning towards just storing the full name to make searches easier,

Thanks

  • 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-05-15T20:06:45+00:00Added an answer on May 15, 2026 at 8:06 pm

    It’s not just a question of how you end up storing names, it also matters how you ask for names on your web form.

    If you prompt with a first and last field, the vast majority of inputs will probably conform, but you’ll still have many exceptions (prefixes, middle names, suffixes, punctuation, etc).

    If you clearly prompt with separate prefix, first name, middle name, last name, suffix fields, there’ll be even fewer exceptions, but users might get peeved or confused.

    You might even offer both: an easy one-field input or preparsed multifield input. Explore what other web sites do and see if you find them appealing/confusing/whatever.

    Also keep in mind that if you input separate fields you can always easily join them later, but if you input only a single field you won’t have the typist’s help if you need to parse it later.

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

Sidebar

Related Questions

I have a web app on JBoss 4.2.3 and I'd like it to send
I have a web app working fully Ajax wise. The user has the opportunity
I have a web app and I would like to prevent DOS attacks by
I have a web app where if a user clicks on a link it
i have web app and on session timeout and user interaction on the page,
I have a web app for commercial property management that needs spreadsheet-like functionality for
I have another web app, that uses the liferay user database. But before a
I have mvc web app sending an email when new user gets created with
I have a web app game and while in the game I want to
I have a web app in production that is used for typical data entry,retrieval,

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.