Precision and scale for decimal id

Description

Possibility to set precision and scale for decimal id using mapping by code?

Now this is not possible:

it isn't also possible:

Environment

None

Activity

Show:

Alex Zaytsev 
May 1, 2017 at 3:40 AM

Closing issues resolved in 4.1.0

Alex Zaytsev 
February 24, 2015 at 9:18 AM

Merged to master @ 6e15d71f32294efc1d964b835a2ce245fe5e9f0c

Alex Zaytsev 
November 24, 2014 at 12:11 PM

Oskar Berggren 
December 27, 2012 at 11:13 AM
(edited)

Perhaps IIdMapper should inherit from IColumnsMapper to get more overloads of Column(...). Regarding having Precision() and Scale() directly in IIdMapper, the underlying XML mapping also doesn't allow precision and scale and some other attributes on <id>. But perhaps that should be allowed.

Adam Bar 
February 4, 2012 at 1:41 PM

XML mapping allows standard <column> mapping within <id> to set all the DDL options. Not all of them actually makes sense for primary keys (like unique, not-null or index), but some of them are useful and will be nice in mapping-by-code, too (apart from already mentioned precision and scale, length and sql-type are missing, too).

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created August 3, 2011 at 8:53 AM
Updated May 1, 2017 at 3:40 AM
Resolved February 24, 2015 at 9:18 AM
Who's Looking?