title: Best practice for entities localization in java spring web applications
body: <p>i am seeking for the best way to localize dynamic(user generated) content on my web. I am using spring-mvc which i found very good framework but now i need to make several entities available in multiple languages.
  I found out that for static texts i18n is best way which i agree but if i understood it right it can't be used to localize something stored in database.</p>
  
  <p>There for i have to store both localized and original content within database and now i need to know what is the best way to do so
  for example i have entity :</p>
  
  <pre><code>@Entity 
  public class Article {
  
      private Long id;
  
      private String title;
  
      private String body;
  
  }
  </code></pre>
  
  <p>how should it look if i want it to support localization?</p>
  
  <pre><code>@Entity 
  public class Article {
  
      private Long id;
  
      @OneToMany
      private Set&lt;LocalizedTitle&gt; localizedTitles;
  
      private String body;
  
  }
  </code></pre>
  
  <p>i don't like this solution tbh but i can't come up with a better way that's why i am coming to this place ... may be there is something built in in jpa/hibernate that i can use?</p>
  
  <p>Thank you for your help</p>