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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -