Integer null value

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 05-May-2005 22:02:01   

Hi,

Is it possible to to specify that the integer value '0' is to be stored in the database as null?

Also, how do I specify that an integer field is null at all? I just want to avoid referential integrity constraint errors when a field is set to 0.

Cheers,

Ian.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 06-May-2005 10:19:42   

Ian wrote:

Hi,

Is it possible to to specify that the integer value '0' is to be stored in the database as null?

No. LLBLGen Pro doesn't use surrogate NULL values, for the reason that these specs often change later on, which results in weird behaving systems.

Also, how do I specify that an integer field is null at all? I just want to avoid referential integrity constraint errors when a field is set to 0. Cheers, Ian.

Please check 'Using the generated code - SelfServicing/Adapter - Using the entity classes -> Entities, NULL values and defaults'

Frans Bouma | Lead developer LLBLGen Pro