try {
Method fd = this.getClass().getMethod("getId", (Class[]) null);
Object idstring = fd.invoke((Object) this, (Object[]) null);
- log.debug(this.getClass().getName()+" called setInstanceVorbaIdField!");
+ log.debug(this.getClass().getName()+" called getInstanceIdField!");
if (idstring!=null && idstring instanceof String) {
if (((String) idstring).length()>0)
return (String) idstring;
* properly instantiated VorbaIdFactory.
*/
public VorbaId getVorbaId() {
- /*if (!registerable && !__testedInstance) {
- testInstanceForIdField();
- __testedInstance=true;
- }*/
if (registerable && vorbaId == null) {
+ if (this.__stored_in_document) {
+ if (__vorba!=null)
+ vorbaId=org.vamsas.client.VorbaId.newId(this.__getInstanceIdField());
+ }
// Try to use the associated factory.
if (__vorba != null)
if ((vorbaId = __vorba.makeVorbaId(this)) == null)