Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring /Hibernate Design Question

 
Rob Miles
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Our web developer recently left the company, and I have been handed the task of updating parts of his CMS system. (my programming skills are a bit rusty so you may have to bare with me)

Currently the system uses Spring and Hibernate (also other bells and whistles not important here). It builds page based on "News" objects(the text on the page) and "Media" objects (all images and multimedia).

I have to add the ability to have multi-lingual support. My current plan is to have central News item in one table then have a "Translation" table in a one-to-many relationship.

Here is where my lack of knowledge really shines, the way I understand it I need to Class for "Translation" and the relevant mappings, Then indicate that the "News" item get/set a "translation". Then presumably I can at the "translation" on the resulting jsp side with model.transObject.column (?)

Am I on the right track here or am I completely lost?

Cheers
Rob

P.S. Any tutorials or examples you could suggest would be greatly appreciated. I havent played with java for a few years
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic