This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new a99183dcc6 [SYNCOPE-1671] Fix italian label and add support to sort 
tasks by job delegate
a99183dcc6 is described below

commit a99183dcc6fc228a11e31f5e5bad35e1682bf37a
Author: Francesco Chicchiriccò <ilgro...@apache.org>
AuthorDate: Wed Apr 6 10:45:30 2022 +0200

    [SYNCOPE-1671] Fix italian label and add support to sort tasks by job 
delegate
---
 .../client/console/tasks/SchedTaskDirectoryPanel_it.properties       | 2 +-
 .../java/org/apache/syncope/core/persistence/jpa/dao/JPATaskDAO.java | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel_it.properties
 
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel_it.properties
index c9183f5908..f261aec1b2 100644
--- 
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel_it.properties
+++ 
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel_it.properties
@@ -17,7 +17,7 @@
 name=Nome
 description=Descrizione
 destinationRealm=Realm di destinazione
-jobDelegate=JobJob Delegate
+jobDelegate=Job Delegate
 lastExec=Ultima esecuzione
 nextExec=Prossima esecuzione
 active=Attivo
diff --git 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPATaskDAO.java
 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPATaskDAO.java
index 7e36c18127..60ba6a365b 100644
--- 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPATaskDAO.java
+++ 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPATaskDAO.java
@@ -26,6 +26,7 @@ import java.util.stream.Collectors;
 import javax.persistence.DiscriminatorValue;
 import javax.persistence.ManyToOne;
 import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
 import javax.persistence.Query;
 import javax.persistence.TypedQuery;
 import org.apache.commons.lang3.StringUtils;
@@ -343,7 +344,9 @@ public class JPATaskDAO extends AbstractDAO<Task> 
implements TaskDAO {
                     Field beanField = ReflectionUtils.findField(beanClass, 
field);
                     if (beanField != null
                             && (beanField.getAnnotation(ManyToOne.class) != 
null
-                            || beanField.getAnnotation(OneToMany.class) != 
null)) {
+                            || beanField.getAnnotation(OneToMany.class) != null
+                            || beanField.getAnnotation(OneToOne.class) != 
null)) {
+
                         field += "_id";
                     }
             }

Reply via email to