Hi Batbileg, what you report is the correct behaviour
Module m = new Module(); m.setModuleName("core");
creates a new instance of Module, that is in a transient state. What identify what u call the Module "core" in the database is the id. So you have to retrieve this from the database and then set the retrieved persistent Module instance to the new Version instance |