If you need to select which columns need update when executing a CMP statement you might use the "updatable" attribute on the @Column annotation.
Setting "updatable" = false will assume that the column is not always included in the SQL update statement.

@Column(name="colname" updatable="false")

At the moment this feature is available only with TopLink JPA.

0
0
0
s2smodern