return q.getSingleResult() + 1;
}
public Long addFieldAndLabel(String name, String value, Long language_id) {
try {
Fieldvalues fv = addFieldById(name, getNextFieldvaluesId());
if (fv.getFieldvalues_id() > 0) {
this.addFieldValueByFieldAndLanguage(fv,
language_id, value);
return fv.getFieldvalues_id();
} else {
return -1L;
}
} catch (Exception ex2) {
log.error("[updateFieldLanguagesLabel]: ", ex2);