开发者

Can I set a default field value of an EntityProxy?

开发者 https://www.devze.com 2023-03-27 22:57 出处:网络
Say I have this: TimeEntryProxy timeEntry = someRequestC开发者_C百科ontext.create(TimeEntryProxy.class);

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

精彩评论

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