HibernateD and DDBC - ORM and DB abstraction layer for D

David d at dav1d.de
Mon Apr 29 02:38:10 PDT 2013


Am 29.04.2013 11:25, schrieb Kagamin:
> On Friday, 5 April 2013 at 07:32:55 UTC, Vadim Lopatin wrote:
>> @Embeddable // required for Embeddable
>> class Address {
>>    String zip;           // @Null
>>    String state;         // @Null
>>    string streetAddress; // @NotNull
>> }
> 
> Is it good to assume string is not null? For most scenarios there's
> little difference between null and empty string.

Null blows up your code, "" doesn't. Also it's a SQL thing, "NotNull"
must be initialized, when the row is filled.


More information about the Digitalmars-d-announce mailing list