[ 
https://issues.apache.org/jira/browse/OLINGO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914063#comment-13914063
 ] 

Chandan V.A commented on OLINGO-182:
------------------------------------

Hi Thiago,
Can you please explain the use case for having a Custom Name builder. Can you 
not achieve the same using the Mapping model XML? Is there any shortcomings 
with the mapping model xml we can discuss to improve that.

Thanks
Kind Regards
Chandan

> Use my own custom JPAEdmNameBuilder
> -----------------------------------
>
>                 Key: OLINGO-182
>                 URL: https://issues.apache.org/jira/browse/OLINGO-182
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata2-jpa
>            Reporter: Thiago Assis
>
> Create a JPAEdmNameBuilder interface and set the implementation ai 
> ODataJPAContext at ODataJPAServiceFactory initialize method.
> eq:
> @Override
> public ODataJPAContext initializeODataJPAContext() throws 
> ODataJPARuntimeException {
>               ODataJPAContext oDataJPAContext = null;
>               try {
>                       
>                       ...
>                       oDataJPAContext = getODataJPAContext();
>                       oDataJPAContext.setJPAEdmNameBuilder(new 
> MyJPAEdmNameBuilder);
>                       ...
>               } catch (Throwable throwable) {
>                       
> ODataJPARuntimeException.throwException(ODataJPARuntimeException.GENERAL, 
> throwable);
>               }
>               return oDataJPAContext;
>       }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to