 <p>primarykey fields ( of any data-type ) are <strong>not included</strong> in the list returned by <code>allFileds</code> method of the Mapper.</p> <p>You can prepend the field separately if you want </p> <p>something like </p> <pre><code> var myMapperPrimaryKey=DummyMapper.primaryKeyField var fieldList=DummyMapper.allFields.toBuffer[BaseField] fieldList.prepend(myMapperPrimaryKey) // Now fieldList is having the primaryKey along with other fields. </code></pre>