Commit 7e106da0 by 丁伟峰

生成自定义的伪列

1 parent 7add6a71
......@@ -3,14 +3,14 @@ package com.dituhui.pea.order.entity;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
@Data
@Entity
@Table(name="v_engineer_skill")
@Table(name = "v_engineer_skill")
public class EngineerSkillEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@EmbeddedId
private PeaEntityId id;
private String engineerCode;
private String skillGroupCode;
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!