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

Reply via email to