hibernate - 具有多个 MappedSuperclass 的 JPA 2.1 和 Hibernate
问题描述
我不知道这是错误还是正常功能,但是在我使用多层次结构后,我的 MappedSuperclass 属性没有被 JPA/hibernate 重新调整。我有这些课程:
@MappedSuperclass
public abstract class AbstractDomain{
private Integer userId;
@Column
public Integer getUserId(){
return userId;
}
public void setUserId(Integer userId){
this.userId=userId;
}
}
public class Invoice extends AbstractDomain{
}
@Entity
public class InvoiceEntity extends Invoice{
}
那正确吗?
解决方案
推荐阅读
- c - 切换编译器和 IDE 后,在 C 中位打包结构时出现语法错误
- ember.js - 是否可以将 mouseEnter 与 ember-bootstrap 组件一起使用?
- php - session_start():无法发送会话缓存限制器 - 标头已发送(qual vs prod)
- php - 为什么这个方法没有输出?
- excel - 将整行复制到另一个工作表中从特定行开始的下一个空行
- javascript - 如何根据此记录进行下拉填充
- sql - 具有不同字符串的校验和返回相同的输出
- react-native - 图像使用 flex 恢复文本
- apache-pulsar - TTL(生存时间)如何应用于命名空间?
- python - Plotly-Dash 堆叠条形图并排响应下拉