spring data jpa repository: update only certain columns or all non null columns -


so have entity:

public class test extends baseentity {     private string title;     private double passmark;      @convert(converter = durationtostringconverter.class)     private duration duration;      @manytoone     private user createdby;      @manytoone     private user updatedby;      @manytomany(fetch = fetchtype.lazy)     private list<question> questions;     ... } 

and have small form allows modify title, passmark , duration.

when form submitted want update these fields. there way without @query annotation, i.e. using spring data repository's magic interface methods?


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -