Is there a way for updating only some fields of an entity object using the method save from Spring Data JPA?
save
For examp
For long,int and other types; you can use the following code;
if (srcValue == null|(src.getPropertyTypeDescriptor(pd.getName()).getType().equals(long.class) && srcValue.toString().equals("0"))) emptyNames.add(pd.getName());