/** * A convenience method to create a new dynamic entity of the given type * @param type * @return */ public DynamicEntity newEntity(String type) { return newEntity(null, type); }
/** * A convenience method to create a new dynamic entity of the given type * @param type * @return */ public DynamicEntity newEntity(String type) { return newEntity(null, type); }
entity = policy.createBeanUsingKey(id, (AbstractSession) context.getServerSession()); } else if (DynamicEntity.class.isAssignableFrom(descriptor.getJavaClass())) { DynamicEntityImpl dynamicEntity = (DynamicEntityImpl) context.newEntity(entityType);
entity = policy.createBeanUsingKey(id, (AbstractSession) context.getServerSession()); } else if (entity instanceof DynamicEntity) { DynamicEntityImpl dynamicEntity = (DynamicEntityImpl) context.newEntity(entityType);