Ignore transient pattern on save hibernate entity

前端 未结 2 1661
鱼传尺愫
鱼传尺愫 2021-01-15 02:53

How to save hibernate entity and ignore (not correct)transient pattern.

for example:

@Entity
@Table(name=\"`REQUEST`\")
@Inheritance(strategy=Inherit         


        
2条回答
  •  孤城傲影
    2021-01-15 03:44

    See http://docs.jboss.org/hibernate/validator/4.2/reference/en-US/html_single/#validator-checkconstraints-orm. By default, Hibernate (the ORM) checks every constraint of the default validation group. So you might put this particular constraint into another group.

    See http://docs.jboss.org/hibernate/validator/4.2/reference/en-US/html_single/#validator-usingvalidator-validationgroups for explanations on validation groups.

提交回复
热议问题