开发者

Can I set a default field value of an EntityProxy?

Say I have this:

TimeEntryProxy timeEntry = someRequestC开发者_C百科ontext.create(TimeEntryProxy.class);

The created proxy is empty. Is there a way to set some of it's fields with a default value? For example, this proxy has a timeAllocation which is a double. Can it be set to 0 without having to do this:

timeEntry.setTimeAllocation(0);

Thank you


How about setting default values in your custom Locator.create(Class c) method?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜