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
Post a Comment