Sha256: fa769de6220ed4b6d9e4989b3061c2667fabcab93193bb037167b0c9de4762f6

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

package <%= places_package %>;

import <%= gwt_rails_package %>.places.RestfulAction;
import <%= gwt_rails_package %>.places.RestfulPlace;

import <%= managed_package %>.ActivityFactory;
import <%= models_package %>.<%= class_name %>;

import com.google.gwt.activity.shared.Activity;

public class <%= class_name %>Place extends RestfulPlace<<%= class_name %>, ActivityFactory> {
    
    public static final String NAME = "<%= table_name %>";
    
    public Activity create(ActivityFactory factory){
        return factory.create(this);
    }
    
    public <%= class_name %>Place(RestfulAction restfulAction) {
        super(restfulAction, NAME);
    }

    public <%= class_name %>Place(<%= class_name %> model, RestfulAction restfulAction) {
        super(<% unless options[:singleton] -%>model.getId(), <% end -%>model, restfulAction, NAME);
    }

    public <%= class_name %>Place(int id, RestfulAction restfulAction) {
        super(id, restfulAction, NAME);
    }    
    
    public <%= class_name %>Place(String id, RestfulAction restfulAction) {
        super(id, restfulAction, NAME);
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/templates/Cache.java~
resty-generators-0.7.2 lib/generators/resty/templates/Cache.java~
resty-generators-0.7.1 lib/generators/resty/templates/Cache.java~
resty-generators-0.7.0 lib/generators/resty/templates/Cache.java~