we are working on a mobile portal that will be used for all major locales and currently uses Struts2 + Spring + Hibernate as its main platforms. to handle localization for static content, such as shortcuts, and other things that are easy to achieve with the Struts2 support assembly using resource bundles. but when it comes to dynamic content, as we have a destination, and it will have a lot of dynamic content, such as its descriptions, places of interests, etc. since this data can be quite large, and we will not be able to solve this problem using the resource package, so we need to somehow save this data in the database and get respected crowns based on the locale information.
My question is: how best can we do this with sleep mode? currently we only have one table for the recipient that contains basic information about the recipient, and all other information related to Destination is the corresponding tables, so it does not seem a good idea to create columns in each table for each locale, as we do in advance I donβt know how many more locales you can add in the future, so the idea is to come up with a general or more flexible solution.
Any suggestion / assistance in this regard would be greatly appreciated.
edit1 Having done some analysis, I came to the conclusion that we can achieve the above goal using the Hibernate user type. My question is that someone tried this method ... or someone reached the goal goal in some other way .. any suggestion in this case will be useful.
source share