You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Mahdi Ansari (Jira)" <ji...@apache.org> on 2020/06/03 10:36:00 UTC

[jira] [Updated] (OLINGO-1457) How can I implement i18n with JPA/Olingo and spring boot?

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

Mahdi Ansari updated OLINGO-1457:
---------------------------------
    Description: 
I made an odata service with olingo2, jpa and spring-boot based on this [GitHub repository|https://github.com/jpenninkhof/odata-boilerplate].

The question is how can I add {{I18n}} functionality to the data?

For example if I store data in a column of type {{Varchar}} like this:
  



{"en":"Cologne","de":"Köln"}

 

How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} when user passed {{de}} as the locale. For example via a HTTP GET variable!

  was:
I made an odata service with olingo2, jpa and spring-boot based on this [GitHub repository|https://github.com/jpenninkhof/odata-boilerplate].

The question is how can I add {{I18n}} functionality to the data?

For example if I store data in a column of type {{Varchar}} like this:
 
{{{"en":"Cologne","de":"Köln"}}}

How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} when user passed {{de}} as the locale. For example via a HTTP GET variable!


> How can I implement i18n with JPA/Olingo and spring boot?
> ---------------------------------------------------------
>
>                 Key: OLINGO-1457
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1457
>             Project: Olingo
>          Issue Type: Question
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.11
>            Reporter: Mahdi Ansari
>            Priority: Major
>
> I made an odata service with olingo2, jpa and spring-boot based on this [GitHub repository|https://github.com/jpenninkhof/odata-boilerplate].
> The question is how can I add {{I18n}} functionality to the data?
> For example if I store data in a column of type {{Varchar}} like this:
>   
> {"en":"Cologne","de":"Köln"}
>  
> How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} when user passed {{de}} as the locale. For example via a HTTP GET variable!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)