[jira] [Updated] (RANGER-2107) Use Spring to inject DAOs

2018-05-22 Thread Zsombor Gegesy (JIRA)

 [ 
https://issues.apache.org/jira/browse/RANGER-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zsombor Gegesy updated RANGER-2107:
---
Attachment: RANGER-2107-2.patch

> Use Spring to inject DAOs
> -
>
> Key: RANGER-2107
> URL: https://issues.apache.org/jira/browse/RANGER-2107
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 1.0.0
>Reporter: Zsombor Gegesy
>Assignee: Zsombor Gegesy
>Priority: Major
>  Labels: code-cleanup, codehealth
> Fix For: 1.1.0
>
> Attachments: RANGER-2107-2.patch
>
>
> Currently, instead of relying on Spring to inject the DAOs internally, Ranger 
> use a RangerDaoManager to create and acquire objects, which lead to a lot of 
> unnecessary generic code which complicates the code. 
>  Instead of this, all the 'DAO' needs a simple '@Service' annotation, and 
> RangerBaseModelService.entityDao and AbstractBaseResourceService.entityDao 
> can be marked as @Autowired - and Spring will do her job. (Spring before <4.0 
> were unable to autowire fields based on the generic parameters). 
> Later all the RangerDaoManagerBase method could be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RANGER-2107) Use Spring to inject DAOs

2018-05-22 Thread Zsombor Gegesy (JIRA)

 [ 
https://issues.apache.org/jira/browse/RANGER-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zsombor Gegesy updated RANGER-2107:
---
Attachment: (was: RANGER-2107.patch)

> Use Spring to inject DAOs
> -
>
> Key: RANGER-2107
> URL: https://issues.apache.org/jira/browse/RANGER-2107
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 1.0.0
>Reporter: Zsombor Gegesy
>Assignee: Zsombor Gegesy
>Priority: Major
>  Labels: code-cleanup, codehealth
> Fix For: 1.1.0
>
> Attachments: RANGER-2107-2.patch
>
>
> Currently, instead of relying on Spring to inject the DAOs internally, Ranger 
> use a RangerDaoManager to create and acquire objects, which lead to a lot of 
> unnecessary generic code which complicates the code. 
>  Instead of this, all the 'DAO' needs a simple '@Service' annotation, and 
> RangerBaseModelService.entityDao and AbstractBaseResourceService.entityDao 
> can be marked as @Autowired - and Spring will do her job. (Spring before <4.0 
> were unable to autowire fields based on the generic parameters). 
> Later all the RangerDaoManagerBase method could be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RANGER-2107) Use Spring to inject DAOs

2018-05-17 Thread Zsombor Gegesy (JIRA)

 [ 
https://issues.apache.org/jira/browse/RANGER-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zsombor Gegesy updated RANGER-2107:
---
Attachment: RANGER-2107.patch

> Use Spring to inject DAOs
> -
>
> Key: RANGER-2107
> URL: https://issues.apache.org/jira/browse/RANGER-2107
> Project: Ranger
>  Issue Type: Bug
>  Components: admin
>Affects Versions: 1.0.0
>Reporter: Zsombor Gegesy
>Assignee: Zsombor Gegesy
>Priority: Major
>  Labels: code-cleanup, codehealth
> Fix For: 1.1.0
>
> Attachments: RANGER-2107.patch
>
>
> Currently, instead of relying on Spring to inject the DAOs internally, Ranger 
> use a RangerDaoManager to create and acquire objects, which lead to a lot of 
> unnecessary generic code which complicates the code. 
>  Instead of this, all the 'DAO' needs a simple '@Service' annotation, and 
> RangerBaseModelService.entityDao and AbstractBaseResourceService.entityDao 
> can be marked as @Autowired - and Spring will do her job. (Spring before <4.0 
> were unable to autowire fields based on the generic parameters). 
> Later all the RangerDaoManagerBase method could be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)