Back Forum Reply New

merge() method missing in Roo generated GWT lt;Entitygt;Request

Hi,

How can I make the merge() method be part of the Roo generated GWT  lt;Entitygt;Request ?

Roo generates the following merge() method in MyEntity_Roo_Entity.aj:

Code:
privileged aspect CrimeIncident_Roo_Entity {      declare @type: CrimeIncident: @Entity;         @Transactional   public CrimeIncident CrimeIncident.merge() {       if (this.entityManager == null) this.entityManager = entityManager();       CrimeIncident merged = this.entityManager.merge(this);       this.entityManager.flush();       return merged;   }      
}
But  ROO generates the following GWT lt;Entitygt;Request which is missing the merge() the method and there is a big commment to not edit the class.

Code:

// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.

package com.tanapa.wildlife.crime.client.managed.request;

@RooGwtMirroredFrom(quot;com.tanapa.wildlife.crime.server.domain.CrimeIncidentquot;)
@ServiceName(quot;com.tanapa.wildlife.crime.server.domain.CrimeIncidentquot;)
public interface CrimeIncidentRequest extends RequestContext {
   abstract Requestlt;java.lang.Longgt; countCrimeIncidents();
   abstract Requestlt;java.util.Listlt;com.tanapa.wildlife.crime.client.managed.request.CrimeIncidentProxygt;gt; findAllCrimeIncidents();
   abstract Requestlt;java.util.Listlt;com.tanapa.wildlife.crime.client.managed.request.CrimeIncidentProxygt;gt; findCrimeIncidentEntries(int firstResult, int maxResults);
   abstract Requestlt;com.tanapa.wildlife.crime.client.managed.request.CrimeIncidentProxygt; findCrimeIncident(Long id);
   abstract InstanceRequestlt;com.tanapa.wildlife.crime.client.managed.request.CrimeIncidentProxy, java.lang.Voidgt; remove();
   abstract InstanceRequestlt;com.tanapa.wildlife.crime.client.managed.request.CrimeIncidentProxy, java.lang.Voidgt; persist();
}
And this is happening for all Entities.  
I am using Roo 1.1.1_RELEASE with gwt 2.1.1

Thanks in advance for your assistance,
¥
Back Forum Reply New