Sha256: dabd153641583211bed638bfa1fff6758535388dbbff02d6ea85b323c3dd256b

Contents?: true

Size: 1018 Bytes

Versions: 3

Compression:

Stored size: 1018 Bytes

Contents

package <%= places_package %>;

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

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

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

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

    public <%= class_name %>Place(<%= class_name %> model, RestfulAction restfulAction) {
        super(model, restfulAction, "<%= table_name %>");
    }

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
resty-generators-0.5.3 lib/generators/resty/templates/Place.java
resty-generators-0.5.1 lib/generators/resty/templates/Place.java
resty-generators-0.5.0 lib/generators/resty/templates/Place.java