package com.sldlt.navps.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Fund {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private String code;

    public Long getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}

@@ -207,16 +207,150 @@
 Id;%0A
-%0A@Entity
+import javax.persistence.Index;%0Aimport javax.persistence.Table;%0A%0A@Entity%0A@Table(indexes = @Index(name = %22idx_fund_code%22, columnList = %22code%22))
 %0Apub

add index