当我打印申请者的技能列表时,我有以下内容:
skills=[Skill{categories=[Category{domains=[Domain{id=4, name=DevOps}], id=13, name=BackEnd}], id=23, name=Java}, Skill{categories=[Category{domains=[Domain{id=4, name=DevOps}], id=13, name=BackEnd}], id=24, name=C}],
下面是一张表格,列出了申请人和技能之间的联系:
但是当我试图保存申请者时,我有这样一个提示:失败的行包含(23,null,null,499)。有人能给我解释一下吗?我正在使用jpa注释开发一个spring应用程序。
@Entity
@Table(name = "ATS_APPLICANT")
public class ApplicantEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(name = "home", unique = false, nullable = true)
private Boolean home;
@Column(name = "anonymous", unique = false, nullable = true)
private Boolean anonymous;
@Enumerated(EnumType.STRING)
@Column(name = "job_type")
private JobType jobType;
@Column(name = "min_salary", unique = false, nullable = true)
private Integer minSalary;
@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(unique = true)
private UserEntity user;
@OneToMany(targetEntity = ApplicantWorkExperienceEntity.class, cascade = CascadeType.ALL)
private List<ApplicantWorkExperienceEntity> applicantWorkExperiences = new ArrayList<ApplicantWorkExperienceEntity>();
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.MERGE)
@JoinTable(name = "ATS_APPLICANT_SKILL", joinColumns = @JoinColumn(name = "applicant_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "skill_id", referencedColumnName = "id"))
private List<SkillEntity> skills = new ArrayList<SkillEntity>();
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name = "ATS_APPLICANT_LOCATION", joinColumns = @JoinColumn(name = "applicant_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "location_id", referencedColumnName = "id"))
private List<LocationEntity> locations = new ArrayList<LocationEntity>();
@Entity
@Table(name = "ATS_SKILL")
public class SkillEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Size(min = 1, max = 42)
@Column(name = "name", length = 42, nullable = false, unique = true)
private String name;
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinTable(name = "ATS_SKILL_CATEGORY", joinColumns = @JoinColumn(name = "skill_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "category_id", referencedColumnName = "id"))
private List<CategoryEntity> categories = new ArrayList<CategoryEntity>();
@Entity
@Table(name = "ATS_CATEGORY")
public class CategoryEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Size(min = 1, max = 42)
@Column(name = "name", length = 42, nullable = false, unique = true)
private String name;
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinTable(name = "ATS_CATEGORY_DOMAIN", joinColumns = @JoinColumn(name = "category_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "domain_id", referencedColumnName = "id"))
private List<DomainEntity> domains = new ArrayList<DomainEntity>();
@Entity
@Table(name = "ATS_DOMAIN")
public class DomainEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Size(min = 1, max = 42)
@Column(name = "name", length = 42, nullable = false, unique = true)
private String name;
我通过在技能上使用@ElementCollection注释取得了成功。
我在postgresql中创建了一个存储过程,如下所示: 是->的类型 我在插入时得到如下错误:
堆栈溢出。 和 详细信息:失败行包含(18,Item Name在这里,这是描述,40.00,items/pattern.png,lXBjgo70QIrI8aF,1,null)。 这是完整的回溯 null 提前谢谢你
这是我的代码,但当我尝试插入另一个“analise”时,num\u cedula,num\u doente,data\u analise为NULL,它会给我这个错误(“错误:num\u cedula”列中的NULL值违反了非NULL约束细节:失败的行包含(32,Ortopedia,NULL,NULL,NULL,NULL,2019-12-02,glicemia,176,Instituicao1)。S
我正在使用JBPM6.5.0Final和Postgres数据库连接。当我尝试通过jbpm-workbench容器启动时,会出现以下错误: 而且还有 提前谢了。
我正在使用带有Postgres数据库连接的JBPM6.5.0Final。当我尝试从jbpm-workbench容器开始时,将显示以下错误: 而且还 提前道谢。
错误: org.quartz.JobPersistenceException:无法获取下一个触发器:错误:列“sched_time”中的null值违反了not-null约束详细信息:失败的行包含(StepScheduler,NON_CLUSTERED1466000944643,dummyTriggerName,group1,NON_CLUSTERED,1466015299949,null,5,en