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?
精彩评论