Menu

#248 Unable to set locale dynamically

v1.0 (example)
closed-rejected
None
5
2025-04-20
2023-12-03
No

From our experience, users use tools on there computers (often: MS Excel...) to generate CSV files to import.
these tools use the user's locale to formate numbers "10.5" vs "10,5" .
It would be great if we could set the locale manually per request instead on in the annotations (speicially if not specified in the annotation).
Place that should be changed include all calls of annotation.locale which if null/empty would fallback to the one specified for example in the mappingStrategy.

Discussion

  • Scott Conway

    Scott Conway - 2025-04-20
    • status: open --> closed-rejected
    • assigned_to: Scott Conway
     
  • Scott Conway

    Scott Conway - 2025-04-20

    Youssef I am sorry it took over a year to respond but I am going to close this as it is a feature request not a bug.

    I think there is potentially a workaround in this Baeldung article about using Java reflection to change annotations at runtime - which could give you exactly what you want.

    If the above does not work feel free to resubmit as a Feature request.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.