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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:58:34+00:00 2026-05-27T04:58:34+00:00

In Mapper’s having String as a primary Key, why is the MappedStringIndex not shown

  • 0

In Mapper’s having String as a primary Key, why is the MappedStringIndex not shown in the list of all fields that are obtained via the Mapper's allFields method

My Mapper goes like this …

class DummyMapper extends KeyedMapper[String,DummyMapper] {

  def getSingleton = DummyMapper
  def primaryKeyField = dummyCode

  object dummyCode extends MappedStringIndex(this,5)
  {
    override def writePermission_? = true
    override def dbAutogenerated_? = false
    override def dbNotNull_? = true
    override def dbColumnName="dummy_code"
  }
.....

I even tried it including in the fieldOrder. Still the result was same, it din’t showed up in DummyMapper.allFields list

  • 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-27T04:58:34+00:00Added an answer on May 27, 2026 at 4:58 am

    primarykey fields ( of any data-type ) are not included in the list returned by allFileds method of the Mapper.

    You can prepend the field separately if you want

    something like

       var myMapperPrimaryKey=DummyMapper.primaryKeyField
       var fieldList=DummyMapper.allFields.toBuffer[BaseField]
       fieldList.prepend(myMapperPrimaryKey)
    
    // Now fieldList is having the primaryKey along with other fields.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can we create a mapper with string as it's primary key in lift's
I've got an OR mapper (iBatis.Net) that returns an IList. // IList<T> QueryForList<T>(string statementName,
I am using the object mapper to map into an object that has String
Can anybody recommend a decent C# Mapper Pattern code generation template that plays nicely
Is there an OR/M (object relational mapper) that can be used in Classic ASP?
I am trying to create a mapper only job via AWS (a streaming job).
is there a python ORM (object relational mapper) that has a tool for automatically
Let's say I have a data mapper function that aggregates multiple tables and generates
I have a mapper that, while processing data, classifies output into 3 different types
I'm writing a mapper which spots identifying words in a string and replaces them

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.