fix error in object initialization

This commit is contained in:
Peter Hormanns 2013-01-21 13:42:07 +01:00
parent 932ca07115
commit e6b213193a

View File

@ -71,6 +71,7 @@ public abstract class AbstractRemote implements IRemote {
Constructor<? extends AbstractEntity> constructor =
getEntityClass().getConstructor();
AbstractEntity entity = constructor.newInstance();
module.initialize(entity);
map2entity(setParams, entity);
transaction.beginTransaction();
AbstractEntity insertedEntity = module.add(entity);