HibernateD and DDBC - ORM and DB abstraction layer for D
Jacob Carlborg
doob at me.com
Fri Apr 5 05:13:41 PDT 2013
On 2013-04-05 11:22, Vadim Lopatin wrote:
> On Friday, 5 April 2013 at 08:53:56 UTC, Jacob Carlborg wrote:
>> Why won't Nullable!(string) String work?
>
> It's to reduce field size (eliminate unnecessary bool field from
> Nullable!, but it's easy to support both cases.
Aha, I see. I think you can use Nullable!(string, null). Look at the
documentation, there's two Nullable:
dlang.org/phobos/std_typecons.html
>> Looks much better know. I'm wondering though, if there need to be a
>> way to indicate a regular instance variable that isn't a column.
>
> 1) Any private, protected, package members are not columns.
Right, didn't think of that. What about methods, can you have a
method/property as a column?
> 2) @Transient annotation may be applied to public member to say that it
> shouln't be persisted (like in Java)
Sounds good.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list