我可以设置EntityProxy的默认字段值吗?

cod*_*joe 5 gwt requestcontext requestfactory

说我有这个:

TimeEntryProxy timeEntry = someRequestContext.create(TimeEntryProxy.class);
Run Code Online (Sandbox Code Playgroud)

创建的代理为空.有没有办法用默认值设置它的一些字段?例如,此代理的timeAllocation是double.可以将其设置为0而不必执行此操作:

timeEntry.setTimeAllocation(0);
Run Code Online (Sandbox Code Playgroud)

谢谢

mil*_*lan 1

在自定义 Locator.create(Class c) 方法中设置默认值怎么样?