Organizational Research By

Surprising Reserch Topic

dynamicinsert dynamicupdate does not work


dynamicinsert dynamicupdate does not work  using -'hibernate'

I am using Hibernate 4.
When I use

    @org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true,
 selectBeforeUpdate = true)


it works.

But, I found that they have deprecated, so I follow the instructions to use the @DynamicInsert and @DynamicUpdate, like this:

@Entity
@DynamicInsert
@DynamicUpdate
@SelectBeforeUpdate
@Table(name = "User")
public class User {
       ..........
}


It does not work.

How do I use @DynamicInsert and @DynamicUpdate ?
    

asked Oct 19, 2015 by akasati02
0 votes
18 views



Related Hot Questions

2 Answers

0 votes

They are broken in the current released version (4.1.0 through 4.1.3). The issue is https://hibernate.atlassian.net/browse/HHH-7074

EDIT: updated the link to the current url. This was fixed in hibernate 4.1.4

answered Oct 19, 2015 by shikhar jain
0 votes

@SelectBeforeUpdate - works in Hibernate 4.x since org.hibernate.annotations.Entity has been deprecated Note: This is a replacement to the earlier org.hibernate.annotations.Entity(selectBeforeUpdate=true)

answered Oct 19, 2015 by gauravg.gwl

...