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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -