Sha256: bc36cdcce3ccb758250e94c9ffc36c404b612fc849e8db7f860f8f26ca6a85b0

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

package <%=@package%>.model;

<%=@licence%>

import org.springframework.hateoas.Identifiable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;


/**
 * A jpa-base entity.
 * @author <%=@user_name%>
 */
@MappedSuperclass
public class BaseEntity implements Identifiable<Long>  {

  @Id
  @GeneratedValue
  private long id;

  public Long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spring-gen-0.2.3 lib/templates/src/main/java/model/jpa/JpaBaseEntity.java.erb
spring-gen-0.2.2 lib/templates/src/main/java/model/jpa/JpaBaseEntity.java.erb
spring-gen-0.2.1 lib/templates/resource/model/JpaBaseEntity.java.erb
spring-gen-0.2.0 lib/templates/resource/model/JpaBaseEntity.java.erb