Commit 891a70e6 by 丁伟峰

改用view创建一个id字段,java这边不做特殊处理

1 parent 7e106da0
...@@ -3,14 +3,15 @@ package com.dituhui.pea.order.entity; ...@@ -3,14 +3,15 @@ package com.dituhui.pea.order.entity;
import lombok.Data; import lombok.Data;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable;
@Data @Data
@Entity @Entity
@Table(name = "v_engineer_skill") @Table(name = "v_engineer_skill")
public class EngineerSkillEntity { public class EngineerSkillEntity {
@EmbeddedId @Id
private PeaEntityId id; @GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
private String engineerCode; private String engineerCode;
private String skillGroupCode; private String skillGroupCode;
private String brand; private String brand;
......
package com.dituhui.pea.order.entity;
import javax.persistence.Embeddable;
import java.io.Serializable;
@Embeddable
public class PeaEntityId implements Serializable {
// Add fields that uniquely identify each entity
// Override equals() and hashCode() methods if needed
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!