Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate 休眠重命名检查约束_Hibernate_Jpa_Hibernate Mapping - Fatal编程技术网

Hibernate 休眠重命名检查约束

Hibernate 休眠重命名检查约束,hibernate,jpa,hibernate-mapping,Hibernate,Jpa,Hibernate Mapping,我已经搜索过了,但没有找到答案,所以有办法在Hibernate中重命名检查约束吗?我的Hibernate版本是3.6.10和JPA:JPA-2.0-api-1.0.1.Final @Entity @Check(constraints="categoria_for>0 and categoria_for<=5") public class Fornecedor implements Serializable{ //... } @实体 @Check(constraints=“categ

我已经搜索过了,但没有找到答案,所以有办法在Hibernate中重命名检查约束吗?我的Hibernate版本是3.6.10和JPA:JPA-2.0-api-1.0.1.Final

@Entity
@Check(constraints="categoria_for>0 and categoria_for<=5")
public class Fornecedor implements Serializable{
//...
}
@实体

@Check(constraints=“categoria\u for>0,categoria\u for>0,您到底想做什么?Hy@joaomundise,我正在尝试重命名默认的检查约束名称,因为Hibernate使用了奇怪的名称,类似于:SYS\u C0027401